>By including 512 to my XMLTOCURSOR() call, it does eliminate the error but my cursor is empty. Does this mean that the source XML file is faulty?
The XMLTOCURSOR() is primarly designed to convert back XML created by CURSORTOXML() or similar simple one.
--sb--