revXMLText |
Type | function |
Dictionary | LCS |
Library | LiveCode Script |
Syntax | revXMLText(<treeID> [, <startNode>] [, <formatted>])
|
Associations | xml library |
Summary | Returns the contents of an XML tree as XML text.
|
Introduced | 2.0 |
OS | mac, windows, linux, ios, android |
Platforms | desktop, server, mobile |
Parameters | Name | Type | Description |
---|
treeID | | The the number returned by the revXMLCreateTree or
revXMLCreateTreeFromFile function when you created the XML tree.
|
startNode | | The path to the node where you want to start. If you don't specify a
startNode, the revXMLText function starts at the root node and returns
the entire XML tree.
|
formatted | | Whether or not to produce xml with indenting and line breaks, i.e.
"pretty-printed". If you don't specify a formatted value, the default is
not to format the text, this will result in the xml being output as a
single block with no line breaks.
|
|
Example | revXMLText(12)
revXMLText(the xmlID of this card,"/Plants/Trees")
put revXMLText(tTreeId, ,true) into URL "file:New Customers.xml"
|
Values | Name | Type | Description |
---|
return | | The revXMLText function returns XML text.
|
|
Related | Glossary: Standalone Application Settings, standalone application, XML tree, return, XML document, LiveCode custom library
Command: revXMLAppend
Function: revXMLChildNames, revXMLAttributes, revXMLTree
Library: XML library
Control Structure: function
|
Security | disk |
Description | Use the revXMLText function to turn an XML tree back into an
XML document.
If the revXMLText function encounters an error, it returns
an error message starting with "xmlerr".
Important: The revXMLText 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.
|
Tags | text processing |