Livecode Wiki
Advertisement

Adds XML text to an XML tree.Syntax:

revXMLAppend <treeID>, <parentNode>, <newXML>

Examples:

revXMLAppend 4,"/Publications/Fiction/SF",URL "file:SF Books.xml"
revXMLAppend thisTree,the currNode of me,the text of me

Use the revXMLAppend command to add new XML data to an existing XML tree.

The revXMLAppend command is part of the 

XML library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "XML" checkbox is checked.

Parameters:

  • treeID: The number returned by the revXMLCreateTree or revXMLCreateTreeFromFilefunction when you created the XML tree.
  • parentNode: The path to the node where the newXML will be inserted. Any elements inthe newXML will become child nodes of the parentNode. If no parentNodeis specified, the newXML is inserted at the end of the XML tree.
  • newXML: The XML text to be inserted.
  • The result: If the revXMLAppend command encounters an error, the result is setto an error message beginning with "xmlerr".

See also: revXMLSetAttribute (command),revXMLInsertNode (command),revXMLAddNode (command),revXMLNodeContents (function),result (function),revXMLText (function),revXMLCreateTreeFromFile (function),revXMLCreateTree (function),revXMLChildContents (function),XML library (library),

Advertisement