creating a dataset from XmlNode

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tim djossou

    creating a dataset from XmlNode

    Hi
    Is there a simple way to create a dataset from a XmlNode ? or from a string
    containing the XML?

    Regards


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: creating a dataset from XmlNode

    Tim,

    You should be able to take the XML and pass it to the ReadXml method on
    the DataSet class.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "tim djossou" <tim@djossou.co .uk> wrote in message
    news:%23DLj3Rxn DHA.3688@TK2MSF TNGP11.phx.gbl. ..[color=blue]
    > Hi
    > Is there a simple way to create a dataset from a XmlNode ? or from a[/color]
    string[color=blue]
    > containing the XML?
    >
    > Regards
    >
    >[/color]


    Comment

    • tim djossou

      #3
      Re: creating a dataset from XmlNode

      The ReadXml method does not seem to accept a Xml string - The overload which
      accept a string expects a filename.
      Regards

      "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om> wrote in
      message news:uCzHpVxnDH A.1672@TK2MSFTN GP09.phx.gbl...[color=blue]
      > Tim,
      >
      > You should be able to take the XML and pass it to the ReadXml method[/color]
      on[color=blue]
      > the DataSet class.
      >
      > Hope this helps.
      >
      >
      > --
      > - Nicholas Paldino [.NET/C# MVP]
      > - mvp@spam.guard. caspershouse.co m
      >
      > "tim djossou" <tim@djossou.co .uk> wrote in message
      > news:%23DLj3Rxn DHA.3688@TK2MSF TNGP11.phx.gbl. ..[color=green]
      > > Hi
      > > Is there a simple way to create a dataset from a XmlNode ? or from a[/color]
      > string[color=green]
      > > containing the XML?
      > >
      > > Regards
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...