Response.Clear();Response.ContentType = "text/xml";Response.Write(xmlString);Response.End();
或者也可以在 Page 指令中指定 ContentType 属性。
有时候我们在调试时,第一次没有成功,以后即使成功了,也不显示为 XML,这时我们可以尝试先清理一下临时文件夹。
创建于2005年 渝ICP备05010272号-1
电邮:cftea@126.com