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

revMoveXMLNode treeID, sourceNode, destinationNode [, location] [, relationship]

Introduced
2.9
Environment
Desktop, Web and Server
Platform Support
Mac OS X,Windows,Linux
Security
Disk
Summary
Moves a node in an XML tree to the specified position
Examples

revMoveXMLNode tTreeId, "root/MyNode", "root/MyNode2", "after", "sibling"
revMoveXMLNode tTreeId, tTargetNode, tDestinationNode, "before", "child"

Additional Comments
Expander triangle

Use the revMoveXMLNode command to move a node in an XML tree.

Parameters

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

The sourceNode is the path of the node to be moved

The destinationNode is the path of the node that the sourceNode will be moved either into or alongside.

The location is either "before" or "after" and determines whether the moved node should be placed before or after its new sibling node. If no location is specified, the default is "after"

The relationship is either "sibling" or "child". This specifies the relationship that the sourceNode should have to the destinationNode. "sibling" means that the sourceNode will be placed alongside the destinationNode. "child" means that the sourceNode will be placed below the destinationNode (i.e. as a child of it). If no relationship is specified the default is "child"

Comments

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

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