title: How can I show an xml file in my asp.net project?
body: <p>In a .Net web-service, when you click "invoke" button an XML file is opened.</p>
  
  <p>I have a page with a button. I want when I click it an XML page be opened like web-service pages. I have written the following code but it does not return an XML page. how can i do that?</p>
  
  <p>1) I am in "http://mysite/default.aspx"</p>
  
  <p>2) click my button</p>
  
  <p>3) This page be opened with the .Xml extension: "http://mysite/result.xml"</p>
  
  <pre><code> Response.ClearHeaders();
   //Response.AppendHeader("content-disposition", "attachment;filename=result.xml");
   Response.AddHeader("content-type", "text/xml");
   Response.Write("aaaa");
   Response.End();
  </code></pre>