XmlDocument xml = new XmlDocument(); xml.Load(Server.MapPath("aa.xml"));//读取你的XML Response.ClearContent(); Response.ClearHeaders(); Response.ContentType = "text/xml"; xml.Save(Response.Output); Response.End();