Error getting tags :
error 404Error getting tags :
error 404 revXMLAttributes | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
revXMLAttributes
Basics
Expander triangle
Type
Function
Syntax
revXMLAttributes(treeID,node,valueDelim,attributeDelim)
Introduced
2.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
Disk
Summary
Returns a list of all attributes and their values for the specified node.
Examples

revXMLAttributes(3,"/Continents",": ",return)
put revXMLAttributes(myTree,thisNode," - ",";") into field "Attr"
repeat for each line thisLine in revXMLAttributes(1,"/",tab,return)

Additional Comments
Expander triangle

Use the revXMLAttributes function to display a node's attributes or to scan each attribute in a repeat loop.

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 attributes you want to list.

The valueDelim is a string that separates an attribute's value from its name.

The attributeDelim is a string that separates attribute name/value pairs from each other.

Value:

The revXMLAttributes function returns a string.

Comments:

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

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