Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XMLAdapter can't parse but XMLTOCursor can
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01008651
Message ID:
01008679
Vues:
15
Sure thing, I did it for fun before sending my post, although I used the AddTableSchema using the resulting cursor.
*-- Now it can be added to the XMLAdapter and re-generate XML from it
*-- loXMLAdapter = NEWOBJECT('XMLAdapter') 
*-- loXMLAdapter.AddTableSchema("csurveydata")
*-- x = loXMLAdapter.ToXML("c:\test.xml","",.t.)
But that's not the question being asked, the question is, being the XMLAdapter newer and powerful, how is that it can't handle that document?
Or even better, how to make it work with the XMLAdapter?

>Well, if XMLTOCURSOR works, then you should be able to work backwards, i.e. do a CURSORTOXML then load that into the XmlAdapter.
>
>
>XMLTOCURSOR('file1.xml', 'file1', 512)
>CURSORTOXML("file1", "file2.xml", 2, 512, 0, "1")
>loXml = CREATEOBJECT("XMLADAPTER")
>loXml.LoadXml('file2.xml',.t.,.f.)
>

...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
Répondre
Fil
Voir

Click here to load this message in the networking platform