用于回答 xmlhttprequest 的 XmlTextWriter 的格式
为了回答 .ashx 文件中的 xmlhttprequest,其中包含使用 XmlTextWriter 类创建的 xml,我必须如何输出它?到文件/字符串/内存?
for answer a xmlhttprequest in .ashx file with xml that created with XmlTextWriter class how I must Outputting it ? to a file/string/memory ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果我正确理解你的问题,那么你想写入
Response.OutputStream
。您可以通过在实例化XmlTextWriter
时提供流作为参数来实现此目的。您可能还想清除和/或设置适当的响应标头。
If I understand your question correctly, then you want to write to
Response.OutputStream
. You can do this by providing the stream as parameter when instantiating theXmlTextWriter
.You may want to clear and/or set appropriate response headers, too.
最终您希望将其写入客户端,因此类似的内容
将是一个合理的写入输出流。
Ultimately you want to be writing it to the client, so something like
would be a reasonable output stream to write to.