Getting XML as string

  • Thread starter Thread starter Steve Peterson
  • Start date Start date
S

Steve Peterson

Hi

I'm a bit new to this so here goes my question:

I need to get the XML from a dataset as a string. I've been beating my head
against the wall trying to use the overload methods of the
[mydataset].WriteXML methods but with no sucess. I'm sure I'm missing
something easy..

Can anyone lend a hand?

TIA
Steve
 
Oh man!!! And a VERY good friend at that!!!!

I can't believe I overlooked that method, especially when it pops up right
there in intelsense.... duuuuuh!

Thxs Sahil!




Sahil Malik said:
DataSet.GetXml() <--- is your friend.

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik



Steve Peterson said:
Hi

I'm a bit new to this so here goes my question:

I need to get the XML from a dataset as a string. I've been beating my head
against the wall trying to use the overload methods of the
[mydataset].WriteXML methods but with no sucess. I'm sure I'm missing
something easy..

Can anyone lend a hand?

TIA
Steve
 
LOL !!!


Steve Peterson said:
Oh man!!! And a VERY good friend at that!!!!

I can't believe I overlooked that method, especially when it pops up right
there in intelsense.... duuuuuh!

Thxs Sahil!




Sahil Malik said:
DataSet.GetXml() <--- is your friend.

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik



Steve Peterson said:
Hi

I'm a bit new to this so here goes my question:

I need to get the XML from a dataset as a string. I've been beating my head
against the wall trying to use the overload methods of the
[mydataset].WriteXML methods but with no sucess. I'm sure I'm missing
something easy..

Can anyone lend a hand?

TIA
Steve
 
Back
Top