I finally broke down and upgraded to VFP9 in order to get the XMLAdapter tool to use for XML -> DBF conversions and vice versa.
Now when I attempt to run it against a client supplied XML & XSD file set, I get an error message.
XML Schema Is Too Complex
The code I am running for a preliminary test is as follows:
The 2 files (XML & XSD) will open for display purposes with Microsoft's Sample Visual Foxpro Form to View XML, so I have to assume that the files are good files and not corrupted.
I need to get data from this client, which is supplied in XML format, into VFP tables/cursors on a regular basis (not just one time). And once processed I need to get the data back into XML format (albeit to a different XSD format).
From reading here and elsewhere on the web, I thought that VFP9's XMLAdapter was going to be the answer.
Where do I go from here?
As always your advice/suggestions are greatly appreciated.
Thanks,
JRB-Bldr
Now when I attempt to run it against a client supplied XML & XSD file set, I get an error message.
XML Schema Is Too Complex
The code I am running for a preliminary test is as follows:
Code:
LOCAL lcFile as String
LOCAL lcXSDFile as String
lcFile = GETFILE('XML', 'Browse to locate the XML file')
lcXSDFile = GETFILE('XSD', 'Browse to locate the SCHEMA file')
adapter = CREATEOBJECT("XMLAdapter")
adapter.XMLSchemaLocation = lcXSDFile
adapter.LoadXML(lcFile,.T.)
* ^^^^ Error Occurs Here ^^^^
For Each oXMLTable In adapter.Tables
oXMLTable.ToCursor()
Endfor
The 2 files (XML & XSD) will open for display purposes with Microsoft's Sample Visual Foxpro Form to View XML, so I have to assume that the files are good files and not corrupted.
I need to get data from this client, which is supplied in XML format, into VFP tables/cursors on a regular basis (not just one time). And once processed I need to get the data back into XML format (albeit to a different XSD format).
From reading here and elsewhere on the web, I thought that VFP9's XMLAdapter was going to be the answer.
Where do I go from here?
As always your advice/suggestions are greatly appreciated.
Thanks,
JRB-Bldr