Error getting tags :
error 404Error getting tags :
error 404 revCreateXMLTree | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Expander triangle

revCreateXMLTree(XMLText, dontParseBadData, createTree, sendMessages)

Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Creates an XML tree structure from XML text data.

revCreateXMLTree(field "XML Data",true,true,false)
put revCreateXMLTree(theData,false,true,false) into theError

Additional Comments
Expander triangle

Use the revCreateXMLTree function to make XML text into an XML tree that you can use with other XML library commands and functions.


The XMLText is a string.

The dontparseBadData is true or false.

The createTree is true or false.

The sendMessages is true or false.


The revXMLCreateTree function returns a tree ID which can be used to refer to the tree in other XML library commands and functions. The tree ID is always a positive integer. (If the createTree is false, the function returns zero.)

If the function encounters an error while parsing the data, it returns an error message beginning with "xmlerr".


If the dontparseBadData is false, the revXMLCreateTree function tries to parse XML data even if it is not well-formed. Otherwise, the function stops executing as soon as it encounters data that is not well-formed XML.

If the createTree is true, the function creates a tree structure in memory. Otherwise, the function simply parses the XML data without creating an XML tree.

If the sendMessages is true, the revXMLStartTree, revStartXMLNode, revStartXMLData, revEndXMLNode, and revXMLEndTree messages are sent while the XML data is being parsed. Otherwise, these messages are not sent.

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

Important! The revXMLCreateTreefunction 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 section on the General screen of the Standalone Application Settings window, make sure "XML Library" is selected in the list of script libraries.

User Comments
Expander triangle