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

revInsertXMLNode treeId, siblingNode, name, contents, [ location ]

Introduced
2.7.4
Environment
Desktop, Web and Server
Platform Support
Mac OS X,Windows,Linux
Security
Disk
Summary
Inserts a node as a sibling of siblingNode in the specified tree.
Examples

revInsertXMLNode tTreeId, "sister", field "Name", field "Contents", "before"

Additional Comments
Expander triangle

Use revInsertXMLNode to insert a node into an XML tree.

Parameters:

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

The siblingNode is the node the new node will have as sibling after insertion.

name is the name of the new node.

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

If location is not present or is equal to "after", the node will be added as the next sibling of siblingNode. If location is "before" then the node will be added as the previous sibling of siblingNode.

Comments:

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

Important! The revInsertXMLNode command 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