first of all remove all content from aspx page except "page" directive.
XmlDocument doc = new XmlDocument(); doc.LoadXml(stringxml); Response.Clear(); //optional: if we've sent anything before Response.ContentType = "text/xml"; //must be 'text/xml' Response.ContentEncoding = System.Text.Encoding.UTF8; //we'd like UTF-8 doc.Save(Response.Output); //save to the text-writer Response.End();
No comments:
Post a Comment