revXMLDeleteNode

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
revXMLDeleteNode <treeID>, <nodeToDelete>
Associationsxml library
Summary

Removes a node from an XML tree.

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

The number returned by the revXMLCreateTree or revXMLCreateTreeFromFile function when you created the XML tree.

nodeToDelete

The path to the node you want to remove.

Example
revXMLDeleteNode 3,"/Works/Books/Fiction"
revXMLDeleteNode line 3 of theTrees,currNodePath
Values
NameTypeDescription
The result

If the revXMLDeleteNode command encounters an error, the result is set to an error message beginning with "xmlerr".

RelatedMessage: revEndXMLNode, revStartXMLNode
Command: revXMLAddNode, revXMLDeleteTree, revXMLPutIntoNode
Function: revXMLRootNode, revXMLNodeContents, result
Glossary: node, Standalone Application Settings, standalone application, XML tree, command, LiveCode custom library
Library: XML library
Securitydisk
Description

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

Important: 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.

Tagstext processing