Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I output XML as a string from an XmlTextReader into a Response.Write?

I have retrieved some XML from an API (at least I think so, the server response is 'OK') however I am putting the response stream into an XmlTextReader, how do I output this XML as a string?

like image 909
MetaGuru Avatar asked Apr 27 '09 14:04

MetaGuru


1 Answers

You can try XmlTextReader.ReadOuterXml().

like image 133
Justin Niessner Avatar answered Sep 19 '22 15:09

Justin Niessner