revXMLRootNode

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
revXMLRootNode(<treeID>)
Associationsxml library
Summary

Returns the path to the starting node of 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.

Example
revXMLRootNode(3)
put revXMLRootNode(thisTree) into myStartNode
Values
NameTypeDescription
return

The revXMLRootNode function returns a node path.

RelatedGlossary: Standalone Application Settings, root node, standalone application, XML tree, return, LiveCode custom library
Message: revXMLStartTree
Command: revXMLDeleteNode
Function: revXMLCreateTree, revXMLCreateTreeFromFile, revXMLNextSibling, revXMLPreviousSibling, revXMLParent, revXMLFirstChild
Library: XML library
Control Structure: function
Securitydisk
Description

Use the revXMLRootNode function to get the path to an XMLtree's root node.

The root node is the starting node of the XML tree. The corresponding XML element is the one that contains all other elements in the XML document.

If the revXMLRootNode function encounters an error, it returns an error message starting with "xmlerr".

Important: The revXMLRootNode function is part of the XML library. To ensure that the function 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