Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经从 API 中检索了一些 XML(至少我认为是这样,服务器响应是“OK”)但是我将响应流放入 XmlTextReader,如何将此 XML 输出为字符串?
您可以尝试XmlTextReader.ReadOuterXml()。