Error getting tags :
error 404Error getting tags :
error 404 revXMLText | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
revXMLText
Basics
Expander triangle
Type
Function
Syntax

revXMLText(treeID [,startNode] [, formatted])

Introduced
2.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
Disk
Summary
Returns the contents of an XML tree as XML text.
Examples

revXMLText(12)
revXMLText(the xmlID of this card,"/Plants/Trees")
put revXMLText(tTreeId, ,true) into URL "file:New Customers.xml"

Additional Comments
Expander triangle

Use the revXMLText function to turn an XML tree back into an XML document.

Parameters:

The treeID is the number returned by the revCreateXMLTree or revCreateXMLTreeFromFile function when you created the XML tree.

The startNode is 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.

The formatted is 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.

Value:

The revXMLText function returns a non-negative integer.

Comments:

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

Important! The revXMLTextfunction 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