PreviousNextIndex

OWNER-DOCUMENT attribute

Returns the handle of the owning document of a node.

Data type: HANDLE

Access: Readable

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. */ 


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex