Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : OWNER-DOCUMENT attribute
 

OWNER-DOCUMENT attribute

Returns the handle of the owning document of a node.
Data type: HANDLE
Access: Read-only
Applies to: X-noderef object handle
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. */