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

revXMLAttributeValues(treeID,startNode,childName,attributeName,delimiter,depth)

Introduced
2.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
Disk
Summary
Returns a list of the values of a specified attribute for the specified nodes in an XML tree.
Examples

revXMLAttributeValues(2,"/",,"Age",return,-1)
get revXMLAttributeValues(thisTree,thisNode,field "Type",comma,2)

Additional Comments
Expander triangle

Use the revXMLAttributeValues function to list all the values an attribute has in an XML tree or a section of an XML tree, or to get the range of possible values.

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.

The childName is a string specifying which child nodes to scan. If it is empty, all child nodes are scanned. Otherwise, only child nodes whose name matches the childName are scanned.

The attributeName is the name of the attribute to scan for.

The delimiter is a string that separates each value from the rest.

The depth specifies how many generations of the XML tree to scan. If you specify zero, only the startNode is scanned; if you specify 1, the startNode and its child nodes are scanned, but not their child nodes; and so on. To scan all generations, specify -1 as the depth.

Value:

The revXMLAttributeValues function returns a string.

Comments:

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

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