DataSet Read XML from string

  • Thread starter Thread starter Maziar Aflatoun
  • Start date Start date
M

Maziar Aflatoun

Hi,

I have ds.ReadXml(myXML); which reads an XML file into my DataSet. How can
I read my XML from a string instead of a file? Can someone please provide me
with a sample?

Thanks
Maz
 
Hi,

You can use the ReadXml( TextReader ) and initializate the TextReader with
yout string:

ds.ReadXml( new TextReader( yourstring), ... );


cheers,
 
Back
Top