Progress
Language Reference
IMPORT-NODE( ) Method
Import a copy of a node from another document into this document. The first parameter must be a valid X-NODEREF handle and will refer to the newly copied XML node if the method succeeds. The new node is associated with this document, but must be appended or inserted with APPEND-CHILD( ) or INSERT-BEFORE( ) to become part of the structure.
Return Type: LOGICAL Applies To: X-document Object Handle
x-node
A valid X-NODEREF handle to use for the new XML node.
x-source-node
A valid X-NODEREF handle that represents the node to import from.
deep
A logical that if TRUE specifies that the whole sub-tree is to be copied. The default value is FALSE.
If hDoc is an existing and loaded X-DOCUMENT and hDocCopy is existing but empty and hRoot and hRootCopy are X-NODEREFs, you can copy hDoc to hDocCopy as follows:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |