有时asp.net文件输出纯XML数据很有用,这时的asp.net文件就相当于一个WebService,输出XML文档也很简单,分以下几部
1、设置输出类型-Response.ContentType = "text/xml";
2、设置字符集-Response.Charset = "GB2312";
3、清空输入内容-Response.Clear();
4、构造XML内容并输出-Response.Write(...)
最后结束余下的输出Response.End(),
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
有时asp.net文件输出纯XML数据很有用,这时的asp.net文件就相当于一个WebService,输出XML文档也很简单,分以下几部
1、设置输出类型-Response.ContentType = "text/xml";
2、设置字符集-Response.Charset = "GB2312";
3、清空输入内容-Response.Clear();
4、构造XML内容并输出-Response.Write(...)
最后结束余下的输出Response.End(),