Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie question on processing XML file
Message
From
01/12/2003 10:24:18
 
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
00854652
Message ID:
00854679
Views:
33
This message has been marked as a message which has helped to the initial question of the thread.
Hi Dmitry.

How would I process the following XML file?:
<?xml version="1.0"?>
<service>
   <add key="key1" value="value1" />
   <add key="key2" value="value2" />
</service>


The easiest way is to use XMLTOCURSOR like so. Assume that the file is called test.xml:
XMLTOCURSOR( 'test.xml', 'csrtest', 512 )
SCAN
 ? Key
ENDSCAN
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform