Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP to XML
Message
From
28/10/2003 23:17:59
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
VFP to XML
Miscellaneous
Thread ID:
00843913
Message ID:
00843913
Views:
45
A question from an XML newbee.

I have been trying to use VFP8's xmladapter to convert a VFP cursor into an xml file that conforms to a schema delivered by a client.

This sort of code
select RevealXML_cr
cXMLFile = pcTargetExpFolder+'Reveal_Data.XML'
loXMLAdapter = CREATEOBJECT("XMLAdapter")
loXMLAdapter.AddTableSchema("RevealXML_cr")
loXMLAdapter.ToXML(cXMLFile,,.T.)
produces an XML file that contains both and internal schema and data that reflects my original cursor.

Unfortunately, this doesn't bear a lot of similarity to the client's schema. It seems to me that what I am looking for is some way to map my data to my client's schema. Is XMLAdapter the right animal to do this?

I would appreciate being pointed in the right direction.

TIA
Godfrey Nicholson
Ofek Technologies Ltd
Auckland
New Zealand
Next
Reply
Map
View

Click here to load this message in the networking platform