%XML_CopyDocument function


Function
The function creates a copy of an XML document.
Declaration
INT %XML_CopyDocument(
   INT in docHandle
 )
Parameters
docHandleHandle to the new open XML document.
Return value
Handle to the new open XML document which is a copy of specific XML document. If an error occurs, the return value is invalid.
Description
The function creates a copy of XML document.
Example
 INT _docOrg
 INT _docCpy 
 
 BOOL _freeOrgOk
 BOOL _freeCpyOk 
 
 _docOrg := %XML_ExportD2ObjToDocument(12704, "zero_hobj=off exp_logs=on")
 _docCpy := %XML_CopyDocument (_docOrg)
 
;work with copy 
 
 _freeOrgOk := %XML_FreeDocument(_docOrg)
 _freeCpyOk := %XML_FreeDocument(_docCpy) 
Napíšte komentár