Dataset to XML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Li Pang

    #1

    Dataset to XML

    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
  • M. Posseth

    #2
    RE: Dataset to XML

    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

    Comment

    • Martin Honnen

      #3
      Re: Dataset to XML

      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.XmlD ataDocument e.g.
      Dim DataDocument as XmlDataDocument = _
      New XmlDataDocument (YourDataSetIns tance)

      --

      Martin Honnen --- MVP XML
      http://JavaScript.FAQTs.com/

      Comment

      Working...