Dataset to XML

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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 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)
 
Back
Top