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