asp.net中怎样向客户端发送xml格式的数据?
用ASP.NET做一个网页,想用户发送请求后,服务器将数据以xml格式发送到客户端?不知道该怎么实现?哪位有这方面的资料或者相关的代码,让我参考一下,谢谢了!本人刚接触xml,希望大家不吝赐教,谢谢!
[解决办法]
Response.Clear();
Response.ContentType = "text/xml ";
Response.Write " <o> ok </o> ";
Response.End();
[解决办法]
Response.Clear();
Response.ContentType = "text/xml ";
Response.Write " <?xml version= " "1.0 " " encoding= " "UTF-8 " "?> ";
Response.Write " <o> ok </o> ";
Response.End();