Dataset to XML

G

Guest

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
 
G

Guest

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]
 
M

Martin Honnen

Li said:
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top