Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursors are empty when loading XML file
Message
From
13/01/2005 17:07:09
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
Cursors are empty when loading XML file
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
00976969
Message ID:
00976969
Views:
53
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
Map
View

Click here to load this message in the networking platform