Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP7: Output XML with Same Schema as Input XML
Message
From
29/07/2002 16:40:40
Jim Underwood
Apollo Information Systems, Inc.
Houston, Texas, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
VFP7: Output XML with Same Schema as Input XML
Miscellaneous
Thread ID:
00683702
Message ID:
00683702
Views:
51
Hi All,

I have an XML file that I need to update using VFP7. I do NOT have a schema file for the XML file. When I input the XML using XMLtoCursor(), the only schema info retained is the field name. So, when I output the cursor using CursorTOXML(), VFP7 uses different schema than the original XML file.

How do I force VFP to use the same schema as the original XML file?
Is there a way to create a XML Schema from a XML file and then use it with VFP7?

Here's a sample of the Original XML file (CurList.XML):
<msExchTurfListNames>
	<msExchTurfListName mail="*@spam1.com"/>
	<msExchTurfListName mail="*@spam2.com"/>
</msExchTurfListNames>
If I simply do a XMLtoCursor(), and then a CursortoXML() here's what I get:
<?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
<VFPData>
	<curlist mail="*@spam1.com"/>
	<curlist mail="*@spam2.com"/>
</VFPData>
TIA.
Best Regards,

Jim Underwood
Apollo Information Systems, Inc.
Houston, TX
Next
Reply
Map
View

Click here to load this message in the networking platform