>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"
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement