xml.DomNode.clone

Returns a duplicate DomNode object of a node.

Syntax

clone(
   deep INTEGER )
  RETURNING object xml.DomNode
  1. deep is a boolean. If deep is TRUE, child DomNode objects are cloned too; otherwise only the DomNode itself is cloned.

Usage

Returns a duplicate DomNode object of this node. If deep is TRUE, child DomNode objects are cloned too; otherwise only the DomNode itself is cloned.

Returns a copy of this DomNode object, or NULL.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).