CloneNode - cXMLDOMDocumentFragment

Creates a clone of the passed node

Type: Function

Return Data Type: Handle

Parameters: integer bRecurse

ParameterDescription
bRecurseIf True, copy child nodes


Return Value

If successful, the method will return an object handle to the newly created cloned node. If a zero is returned, the operation failed.


Syntax
Function CloneNode integer bRecurse Returns Handle

Call: Get CloneNode bRecurse to HandleVariable


Description

CloneNode creates a clone of the passed node. If bRecurse is true, the node and all its descendents will be cloned (a deep clone), if bRecurse if false, only the node will be cloned (a shallow clone).