By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,333 Members | 1,047 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,333 IT Pros & Developers. It's quick & easy.

Dataset to XML

P: n/a
Hi,

I know that it's easy to convert dataset to XML. However, I want to know if
there is an easy way to convert dataset to XML object.

My concern is to convert data between dataset and XML object without using
an external file.

Any body has a solution?
Thanks in advance
Nov 15 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Well the dataset DS.WriteXml method accepts anny iostream so you can write
it out to a memory stream

A XML text writer has a write raw method and even a write string method
so writing it back to a XML object should not be such a big task

Regards

Michel Posseth [MCP]

"Li Pang" wrote:
Hi,

I know that it's easy to convert dataset to XML. However, I want to know if
there is an easy way to convert dataset to XML object.

My concern is to convert data between dataset and XML object without using
an external file.

Any body has a solution?
Thanks in advance
Nov 15 '06 #2

P: n/a
Li Pang wrote:
I know that it's easy to convert dataset to XML. However, I want to know if
there is an easy way to convert dataset to XML object.

My concern is to convert data between dataset and XML object without using
an external file.
Use System.Xml.XmlDataDocument e.g.
Dim DataDocument as XmlDataDocument = _
New XmlDataDocument(YourDataSetInstance)

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Nov 15 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.