[thelist] ASP.NET parsing xml response with XMLDocument class

Anthony Baratta anthony at baratta.com
Mon Oct 2 11:59:56 CDT 2006


You need to load the returned stream into an XMLDoc first.

I use C#, but this should be similar:

            XmlDocument xd = new XmlDocument();
            xd.Load(stIn);

Then you can walk the XML Tree and get the data you want.


-----Original message-----
From: "Casey Crookston" caseyc at IntelliSoftmn.com
Date: Mon, 02 Oct 2006 09:48:18 -0700
To: thelist at lists.evolt.org
Subject: [thelist] ASP.NET parsing xml response with XMLDocument class

> Okay - on this little xml project I'm doing, I have now successfully
> send the original HTTP Post to the remote server and received an XML
> response.  What I now need to do is parse the response with the .net
> XMLDocument class.  This is how I'm receiving the response:
> 
> Dim stIn As New StreamReader(req.GetResponse().GetResponseStream())
> 
> Now I need to add the contents of the stream reader to an XMLtext
> variable.  If I do it directly:




More information about the thelist mailing list