Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting dataset to xml
Message
From
01/11/2005 00:01:54
 
 
To
31/10/2005 16:35:32
General information
Forum:
ASP.NET
Category:
XML
Miscellaneous
Thread ID:
01062521
Message ID:
01063898
Views:
11
You're welcome, Holger. Although Cetin really ought to get the gold stars for this one ... I just took his reply and refined it a bit. Anyway, glad it's working for you. =)

~~Bonnie



>
>>private string WriteDataSetToXMLStr(DataSet ds)
>>{
>>	if (ds == null) { return ""; }
>>
>>	MemoryStream ms = new MemoryStream();
>>	ds.WriteXml(ms, XmlWriteMode.WriteSchema);
>>
>>	ms.Seek(0, SeekOrigin.Begin);
>>	StreamReader sr = new StreamReader(ms);
>>	string xml = sr.ReadToEnd();
>>
>>	return xml;
>>}
>
>
>thanks Bonnie, this one really seems to be simpler. <s>
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