XMLCloneNode

(Engine-Level Function)

Description: Clones an existing XMLNode, optionally adding additional members.
Returns: The cloned XMLNode, with any additional members supplied.
Usage: Script Only.
Function Groups: XML
Related to: XMLParse | XMLProcessor | XMLAddSchema | XMLWrite | XMLCreateNode | XMLDeleteMember | XMLGetNode | GetXMLNodeArray
Format: XMLCloneNode(XMLNode [, MembersDictionary])
Parameters:  
XMLNode
Required. A valid XMLNode.
MembersDictionary
An optional dictionary containing additional members to be added to the cloned node.
Comments: If the optional member dictionary parameter is supplied, any additional members will be added to the cloned node in the same order that they were added to the dictionary.

Example:

MembersDict = Dictionary(0);
MembersDict["ISBN"] = XMLCreateNode("01234567890");
MyNode = XMLCloneNode(XMLNode\catalog\book, MembersDict);