Information générale
Titre:
Cursors are empty when loading XML file
Versions des environnements
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
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