Name: revStartXMLNode

Type: message

Syntax: revStartXMLNode <nodeName>, <nodeAttributes> 

Summary: Sent to the <current card> when the <revXMLCreateTreeFromFile> <function> encounters an opening <tag> while parsing an <XML> file.

Associations: card

Introduced: 2.0

OS: mac,windows,linux,ios,android

Platforms: desktop,server,web,mobile

Security: disk

Example:
on revStartXMLNode theAttributes -- create a new card for this node
  if "publisher",the currPublisher of this stack \
     is among the lines of theAttributes then
    create card
    put theAttributes into field "Attributes"
  end if
end revStartXMLNode

Parameters:
nodeName (string): A string containing the name of the XML element currently being parsed.
nodeAttributes (string): A string containing the attributes of the XML element currently being parsed, one attribute per line. Each attribute name is separated from its value by a comma.

Description:
Handle the <revStartXMLNode> <message> if you want to build your own subset of an <XML document>.

The revXMLCreateTree or <revXMLCreateTreeFromFile> <function(glossary)|functions> take <XML> data and parse it. When you <call> either of these <function(glossary)|functions>, you can specify whether or not to send <message|messages> during the parsing operation.

If you have specified that you want the function to send messages, the <revStartXMLNode> <message> is sent when the <function(control_st)> encounters the start of a node. If you have specified that you don't want <message|messages> sent, no <revStartXMLNode> <message|messages> are sent.

References: revXMLStartTree (message), call (command), revXMLDeleteNode (command), function (control_st), revXMLCreateTreeFromFile (function), current card (glossary), tag (glossary), message (glossary), function (glossary), XML (glossary), XML document (glossary)
