Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursors are empty when loading XML file
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
Cursors are empty when loading XML file
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
00976969
Message ID:
00976969
Vues:
54
Hi friends
I am using following code to retrieve xml content to foxpro

...
LOCAL loXmlAd as XMLAdapter
LOCAL oTabMed as XMLTable
loXmlAd = CREATEOBJECT("xmladapter")
loXmlAd.XMLSchemaLocation = "C:\customers.xsd"
loXmlAd.LoadXML('c:\myxml.xml',.t.)

FOR EACH oTabMed IN loXmlAd.Tables
oTabMed.ToCursor()
ENDFOR
After this is run, loXmlAd.Tables.Count = 1, and I can issue the
oTabMed.ToCursor() command and it creating the table according to the schema
file. However, none of the cursors created contain any data from the XML
document.

How do I get the data from the xmladapter into the schema cursors?
--
cheers
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform