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

revAddXMLNode treeID, parentNode,nodeName,nodeContents, [location]

Introduced
2.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
Disk
Summary
Adds a child node to the specified parent node in an XML tree.
Examples

revAddXMLNode 9,"/","Balls",""
revAddXMLNode myTree,theNode,the short name of me,field "Contents"

Additional Comments
Expander triangle

Use the revAddXMLNode command to add a node to an XML tree.

Parameters:

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

The parentNode is the node whose child the node being created will be.

The nodeName is the name of the new node.

The nodeContents is the text to place in the new node.

The location is an optional argument. If it is not present or if it is equal to "after", the node will be added as the last child of parentNode. If location is "before" then the node will be added as the first child of parentNode.

Comments:

If the revAddXMLNode command encounters an error, the result is set to an error message beginning with "xmlerr".

Important! The revAddXMLNodecommand is part of the XML library. To ensure that the command 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