StringBuilder sb = new StringBuilder();
string result = string.Empty;
sb.Append("<?xml version='1.0' encoding='utf-8' ?>");
sb.Append("<root>");
try
{
sb.Append("<name>标题</name>");
}
catch (Exception ex)
{
sb.Append("");
}
sb.Append("</root>");
string xmlStr =sb.ToString();
Response.ContentType = "text/xml";
Response.Charset = "UTF-8";
Response.Clear();
Response.Write(xmlStr);
Response.End();
string result = string.Empty;
sb.Append("<?xml version='1.0' encoding='utf-8' ?>");
sb.Append("<root>");
try
{
sb.Append("<name>标题</name>");
}
catch (Exception ex)
{
sb.Append("");
}
sb.Append("</root>");
string xmlStr =sb.ToString();
Response.ContentType = "text/xml";
Response.Charset = "UTF-8";
Response.Clear();
Response.Write(xmlStr);
Response.End();