>>Before generating your XML from the DataSet, be sure to set this in your DataAdapter:
>>
>>YourDataAdapter.MissingSchemaAction = MissingSchemaAction.AddWithKey
>>
>
>I tried several routes during the day. One of them was to GetXMLSchema() before GetXML(), put them all together in lcXML and return that. But, again, this is the .NET way so VFP was not able to get all of that. I ended up only returning GetXML() and have VFP to be smart enough to build its own schema, by reading the master files, add that on top of the XML, do a few manipulations and then XMLToCursor().
But generating the schema on the client is like drawing a map based on what other voyager told you about a trip. 8-)
Try using the MissingSchemaAction. It will generate the full schema as VFP needs.