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:
01125924
Views:
19
>I have no problem importing your XML with XMLTOCURSOR in VFP9SP1. 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
>
>
Yes, that was it for XMLTOCURSOR, thank you.

It works with the xmladapter too:
x = CREATEOBJECT("xmladapter")
?x.LoadXML("c:\documents and settings\mzambrano\desktop\po.xml",.t.)
?x.tables.Count
?x.Tables.Item(1).ToCursor()

Sometimes is just the little details what need to be taken care of.
In both cases indicating that the source was a file was neeeded.

...Y soy feliz, bien feliz, asi lo grito;
Mira, que el mundo sepa, que se sepa:
Soy feliz....                       

...And I'm happy, quite happy, so do I yell it;
Look, so the world knows it, so be known:
I'm happy...
 

Ismael Rivera "Oye cosita linda"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform