Progress
Language Reference


CLONE-NODE( ) Method

Clone the XML node referred to by a node reference. The first parameter must be a valid X-NODEREF handle and will refer 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

A valid X-NODEREF handle to use for the new XML node.

deep

A logical that if TRUE specifies that the whole sub-tree is to be cloned. The default value is FALSE.

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

hOldNode:CLONE-NODE(hNewNode,true). 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095