General information
Title:
Cursors are empty when loading XML file
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only