8

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?

MetaGuru
  • 42,847
  • 67
  • 188
  • 294

1 Answers1

13

You can try XmlTextReader.ReadOuterXml().

Justin Niessner
  • 242,243
  • 40
  • 408
  • 536