An XML file can be read from a LONGCHAR as the following code fragment demonstrates:

DEFINE VARIABLE longstring AS LONGCHAR NO-UNDO.
. . . 
hDoc:LOAD("LONGCHAR",longstring,FALSE).
. . .