How get from HttpWebResponse to XMLTextReader?

  • Thread starter Thread starter Ronald S. Cook
  • Start date Start date
R

Ronald S. Cook

I've posted my XML to a server and captured the XML sent back into an
HttpWebResponse object. How do I process it further into an XMLTextReader
object so that I can parse through the data looking for certain values?

Thanks,
Ron
 
Ronald,

The HttpWebResponse class has a GetResponseStream method which will
return a Stream implementation. You can pass this to a StreamReader (or
maybe to the XmlTextReader itself).

Hope this helps.
 
Back
Top