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

revCopyXMLNode treeId, sourceNode, destinationNode [, location] [, relationship]

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

-- Duplicates myNode and puts it after the original
revCopyXMLNode tTreeId, "root/myNode", "root/myNode", "after", "sibling"

Additional Comments
Expander triangle

Use the revCopyXMLNode command to create a duplicate of 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 copied.

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

The location is either "before" or "after" and determines whether the copied 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 soruceNode should have to the destinationNode after being copied. "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 revCopyXMLNode command encounters an error, the result is set to an error message beginning with "xmlerr".

Important! The revCopyXMLNode 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
User thumbnail
Trevor DeVore
StarStarStarStarStar
May 11, 2009
Example is not correct.
'revCopyXMLNode tTreeId, "root/myNode", "root/myNode", "sibling", "after"'
should be
'revCopyXMLNode tTreeId, "root/myNode", "root/myNode", "after", "sibling"'