Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proper way to send the schema and the XML
Message
From
14/01/2006 16:54:55
 
 
To
14/01/2006 16:52:27
General information
Forum:
ASP.NET
Category:
XML
Miscellaneous
Thread ID:
01086836
Message ID:
01086860
Views:
20
No problem, Michel ... you're welcome. =)

~~Bonnie



>>Yep, there's a better way:
>>
>>MemoryStream ms = new MemoryStream();
>>MyDataSet.WriteXml(ms, XmlWriteMode.WriteSchema);
>>
>>ms.Seek(0, SeekOrigin.Begin);
>>StreamReader sr = new StreamReader(ms);
>>string xml = sr.ReadToEnd();
>>
>
>This is perfect. Thanks
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform