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

revXMLNodeContents(treeID, node)

Introduced
2.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
Disk
Summary
Returns the text contained in the specified node in an XML tree.
Examples

revXMLNodeContents(3,"/Book/Chapter/Section")
put revXMLNodeContents(thisDoc,mySection) into field "Current Section"

Additional Comments
Expander triangle

Use the revXMLNodeContents function to get the text contents of a node.

Parameters:

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

The node is the path to the node whose contents you want to get.

Value:

The revXMLNodeContents function returns a string.

Comments:

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

The revXMLNodeContents function returns the text content of a node. This is defined as the first piece of text not contained within a child node. For example:

<root>Text<child>Child Text</child>Text 2</root>

In the preceeding XML document, revXMLNodeContents will return the string "Text" when called with "root" as the node.

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