revXMLCreateTree | ||||||||||||||||
Type | function | |||||||||||||||
Dictionary | LCS | |||||||||||||||
Library | LiveCode Script | |||||||||||||||
Syntax |
| |||||||||||||||
Associations | xml library | |||||||||||||||
Summary | ||||||||||||||||
Introduced | 2.0 | |||||||||||||||
OS | mac, windows, linux, ios, android | |||||||||||||||
Platforms | desktop, server, mobile | |||||||||||||||
Parameters |
| |||||||||||||||
Example |
| |||||||||||||||
Values |
| |||||||||||||||
Related | Message: revStartXMLData, revStartXMLNode, revEndXMLNode, revXMLStartTree, revXMLEndTree Library: XML library Keyword: integer Control Structure: function Function: revXMLValidateDTD, revXMLTrees Command: revXMLDeleteAllTrees, revXMLMoveNode, revXMLAppend Glossary: LiveCode custom library, return, XML tree, Standalone Application Settings, message, standalone application, XML, function, command | |||||||||||||||
Security | disk | |||||||||||||||
Description | Use the revXMLCreateTree function to make XML text into an XML tree that you can use with other XML library commands and functions. 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".
| |||||||||||||||
Tags | text processing |