System.Xml.XmlElement to DataSet

M

Marcos MOS

Hi all,

I've created a WebService's Sql Server by SOAP, and it results a
System.Xml.XmlElement to my WindowsApplication (C#)... so How Can I insert
this "XmlElement" in a new DataSet?

I know that there is a DataSet's method (ds.ReadXml()), but it expects a
XmlReader and I don't know how transform my XmlElement to XmlReader....

Any Ideas?

thanks a lot
Marcos
 
H

hs

You could try something like (not tested)

XmlElement xe = new XmlElement;
....
// use the xmlelemnt innertext or innerxml method to return a string
string s1 = xe.InnerXml;
XmlReader reader = new XmlReader(new StringReader(s1));
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top