Error getting tags :
error 404Error getting tags :
error 404 revXMLParent | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
revXMLParent
Basics
Expander triangle
Type
Function
Syntax
revXMLParent(treeID,childNode)
Introduced
2.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
Disk
Summary
Returns the path to the parent node of a node in an XML tree.
Examples

revXMLParent(1,"/City/Publisher")
put revXMLParent(thisTree,thisNode) into field "Parent"

Additional Comments
Expander triangle

Use the revXMLParent function to go up one level in an XML tree.

Parameters:

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

The childNode is the path to the node where you want to start.

Value:

The revXMLParent function returns a string consisting of the path to the parent node of the childNode. If the childNode is the root node of the XML tree (and therefore has no parent), the revXMLParent function returns empty.

Comments:

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

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