title: Error in writting xml : "error on line 3 at column 1: Extra content at the end of the document"
body: <p>here the c# code I use to respond xml data</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  using System.Xml;
  
  public partial class xmlData : System.Web.UI.Page
  {
      protected void Page_Load(object sender, EventArgs e)
      {
  
          Response.ContentType = "text/xml"; 
          String xml = "&lt;?xml version=\"1.0\" encoding=\"ISO-8859-1\"?&gt;"+
                       "&lt;note&gt;"+
                           "&lt;to&gt;Tove&lt;/to&gt;"+
                           "&lt;from&gt;Jani&lt;/from&gt;"+
                           "&lt;heading&gt;Reminder&lt;/heading&gt;"+
                           "&lt;body&gt;Don't forget me this weekend!&lt;/body&gt;"+
                        "&lt;/note&gt;";
  
          Response.Write(xml);
  
      }
  }
  </code></pre>
  
  <p>but I got this error .. why ?</p>
  
  <pre><code>This page contains the following errors:
  
  error on line 3 at column 1: Extra content at the end of the document
  Below is a rendering of the page up to the first error.
  </code></pre>