[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Marcos MOS

8/1/2003 6:26:00 PM

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


1 Answer

hs

8/4/2003 7:30:00 AM

0

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));




"Marcos MOS" <marcos.santos@softway.com.br> wrote in message
news:OIQFAqFWDHA.2156@TK2MSFTNGP11.phx.gbl...
> 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
>
>