Livecode Wiki
Advertisement

Removes a node from an XML tree.Syntax:

revXMLDeleteNode <treeID>, <nodeToDelete>

Examples:

revXMLDeleteNode 3,"/Works/Books/Fiction"
revXMLDeleteNode line 3 of theTrees,currNodePath

Use the revXMLDeleteNode command to remove part of an XML tree you're working with.

The revXMLDeleteNode 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.
  • nodeToDelete: The path to the node you want to remove.
  • The result: If the revXMLDeleteNode command encounters an error, the result isset to an error message beginning with "xmlerr".

See also: revXMLPutIntoNode (command),revXMLRootNode (function),revXMLNodeContents (function),result (function),XML library (library),revEndXMLNode (message),revStartXMLNode (message),

Advertisement