Skip to content

CloneNode - cXMLDOMDocumentType

Creates a clone of the passed node

Type: Function
Return Data Type: Handle

Parameters

Parameter Type Description
bRecurse Integer If True, copy child nodes

Syntax

Function CloneNode Integer bRecurse Returns Handle

Call Example

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).

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.