revStartXMLNode

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
revStartXMLNode <pNodeName>, <pNodeAttributes>
Associationscard
Summary

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

Introduced2.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
pNodeName

A string containing the name of the XML element currently being parsed.

pNodeAttributes

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.

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
RelatedMessage: revXMLStartTree
Command: call, revXMLDeleteNode
Function: revXMLCreateTreeFromFile
Control Structure: function
Glossary: current card, tag, message, function, XML, XML document
Securitydisk
Description

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

The revXMLCreateTree or revXMLCreateTreeFromFile functions take XML data and parse it. When you call either of these functions, you can specify whether or not to send 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 encounters the start of a node. If you have specified that you don't want messages sent, no revStartXMLNode messages are sent.