Previous Next

OWNER-DOCUMENT attribute
Returns the handle of the owning document of a node.
Data type:
Access:
Applies to:
The following example demonstrates the use of the OWNER-DOCUMENT attribute:
 
DEFINE VARIABLE hDoc  AS HANDLE NO-UNDO.
DEFINE VARIABLE hDoc2 AS HANDLE NO-UNDO.
 
hDoc:LOAD("file", "my.xml", TRUE).
hDoc:GET-DOCUMENT-ELEMENT(hNoderef).
hDoc2 = hNoderef:OWNER-DOCUMENT.
 
/* At this point, hDoc2 and hDoc should be the same. */

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.