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?
Asked
Active
Viewed 1.7k times
1 Answers
13
You can try XmlTextReader.ReadOuterXml().

Justin Niessner
- 242,243
- 40
- 408
- 536
-
4Just a note. This can not be used to debug input since it can not read with invalid XML :) – trex005 Jul 01 '11 at 00:57