Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unable to parse XML
Message
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
01125912
Message ID:
01125916
Views:
23
This message has been marked as the solution to the initial question of the thread.
>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform