Routines (alphabetical) > Object Classes > File Format Object Classes > IDLffXMLDOMNode::CloneNode

# IDLffXMLDOMNode::CloneNode

Syntax | Return Value | Arguments | Keywords | Version History

The IDLffXMLDOMNode::CloneNode function method creates a copy of the calling node (i.e., an instance of an IDLffXMLDOMNode subclass) and returns the object reference to the cloned node. The class of the cloned node is the same as the class of the calling node. The cloned node has no parent.

Cloning an element node copies all attributes and their values and does not copy child nodes unless the DEEP keyword is set. Cloning any other type of node simply copies the node.

## Syntax

Result = Obj->[IDLffXMLDOMNode::]CloneNode( [, /DEEP] )

## Return Value

Returns an object reference to the cloned node.

## Arguments

None

## Keywords

### DEEP

Set this keyword to cause all of a node’s children to be cloned along with the calling node. By default, only the calling node is cloned.

## Version History

6.1 | Introduced