I am receiving an xml document from a HTTP request. This document contains no schema. So I used Visual Studio to create a schema file (customers.xsd) from this xml document. In VFP I then issue the following commands:
...
loXmlAd = CREATEOBJECT("xmladapter")
loXmlAd.XMLSchemaLocation = "..\customers.xsd"
loXmlAd.LoadXML(lcXml,.f.,.t.)
After this is run, loXmlAd.Tables.Count = 7, and I can issue the loXmlTables.ToCursor() command and it will create the tables according to the schema file. However, none of the cursors created contain any data from the XML document.
How do I get the data from the xmladapter into the schema cursors?
...
loXmlAd = CREATEOBJECT("xmladapter")
loXmlAd.XMLSchemaLocation = "..\customers.xsd"
loXmlAd.LoadXML(lcXml,.f.,.t.)
After this is run, loXmlAd.Tables.Count = 7, and I can issue the loXmlTables.ToCursor() command and it will create the tables according to the schema file. However, none of the cursors created contain any data from the XML document.
How do I get the data from the xmladapter into the schema cursors?