PreviousNextIndex

CLONE-NODE( ) method

Clone the XML node referred to by a node reference. The first parameter must be a valid X-noderef handle and refers to the new cloned XML node if the method succeeds. The new node is associated with the same document, but needs to be inserted with INSERT-BEFORE( ) or APPEND-CHILD( ) to become part of the document structure.

Return type: LOGICAL

Applies to: X-noderef object handle

Syntax
CLONE-NODE( x-node-handle , deep ) 

x-node-handle
deep

The following example demonstrates the use of the CLONE-NODE( ) method to clone an entire sub-tree:

hOldNode:CLONE-NODE(hNewNode,true). 


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex