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