Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding the inline schema to the XML string
Message
General information
Forum:
ASP.NET
Category:
Web Services
Miscellaneous
Thread ID:
00677105
Message ID:
00677135
Views:
28
This message has been marked as a message which has helped to the initial question of the thread.
You need to use the WriteXML method of the DataSet like below:
// Create a file name to write to.
string filename = "myXmlDoc.xml";
// Write to the file with the WriteXml method.
MyDataSet.WriteXml(filename,,XmlWriteMode.WriteSchema);
>In Visual FoxPro, we have the ability to add some specific parameters when converting a cursor to an XML string in order to preserve the inline schema. So, at the other end, when reversing the process, we end up with the same structure.
>
>In .Net, from the DataSet, this can be done to convert everything in a XML string:
>
>
>return MyDataSet.GetXML();
>
>
>However, this doesn't preserve the inline schema. So, when I convert that XML into a cursor in Visual FoxPro, I lost the structure. Is there any parameter to specific to the GetXML() call to specify that?
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform