revEndXMLNode

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
revEndXMLNode <pNodeName>
Associationscard
Summary

Sent to the current card when the revXMLCreateTreeFromFile function encounters a closing 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.

Example
on revEndXMLNode -- notify user how many nodes have been parsed
  global nodesProcessed
  add 1 to nodesProcessed
  put nodesProcessed && "nodes processed" into field "Progress"
end revEndXMLNode
RelatedCommand: call, revXMLDeleteNode
Function: revXMLCreateTreeFromFile
Control Structure: function
Glossary: current card, tag, message, function, XML, XML document
Securitydisk
Description

Handle the revEndXMLNode 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 revEndXMLNode message is sent when the function encounters a close tag. If you have specified that you don't want messages sent, no revEndXMLNode messages are sent.