在服务端Response一个XML,需要先输出:
Response.ContentType="text/xml";
Response.AddHeader("Cache-Control","no-cache");
Response.Write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
1.输出文本要放在<![CDATA[ 和 ]]>之间
2.要将
]]&转成]]&
]]>转成]]>
3.在客户端要反解析:
]]> 转成]]>
]]&转成]]&
Response.ContentType="text/xml";
Response.AddHeader("Cache-Control","no-cache");
Response.Write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
1.输出文本要放在<![CDATA[ 和 ]]>之间
2.要将
]]&转成]]&
]]>转成]]>
3.在客户端要反解析:
]]> 转成]]>
]]&转成]]&