Progress
Language Reference


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.
DEFINE VARIABLE hDoc2 as HANDLE.
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. */ 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095