>Hi all
>Both XMLTOCURSOR and the XMLAdapter.loadxml are erroring out:
>
>XML Parse error: Invalid at the top level of the document.
>Line 1, Position 1.
>
>I looked and re-looked and I can't see anything wrong with it.
>What is wrong?
I have no problem importing your XML with XMLTOCURSOR in VFP9SP1 with code below. If you're reading XML from a file, you have to specify 512 flag.
TEXT TO lcXML NOSHOW
<?xml version="1.0" standalone="yes"?>
...
</NewDataSet>
ENDTEXT
? XMLTOCURSOR(lcXML, "crsXml")
BROWSE LAST NOWAIT
--sb--