Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting an inline schema from a dataset
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00837774
Message ID:
00837802
Views:
26
Thanks, Morgan, but my first thought is that this approach will not result in a well-formed document. The inline schema should be placed *within* the document, not prepended to it.

>>DataSet.GetXML() does a fine job of extracting the contents of a DataSet as an XML stream, but I'd like that extracted XML to include an inline schema. There doesn't seem to be an overload for GetXML() that allows you to do this, and it would seem that this should be do-able.
>>
>>FWIW, I'm looking for something that is the equivalent of the cSchemaName argument of "1" to VFP's CursorToXML() function.
>>
>>Thanks.
>
>Well, it isn't pretty but you can do this.
>
>DataSet ds = new DataSet();
>// Fill up the DataSet here
>
>string XML = "";
>
>XML = ds.GetXmlSchema();
>XML += ds.GetXml();
>
>
>
>It isn't pretty, but it works. Or you could always override the GetXml in your class have it do that internal to your class.
>
>Morgan
>>-Steve->>

Steve Sawyer
Geeks and Gurus, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform