title: Jquery / XML No response when using xml generated from a php file
body: <p>I want to load a xml file using Jquery . The xml is generated using a php script (Currently just using echo) My problem is that the file will just not produce and results . My Jquery is listed below 
                
                
                
                 </p>
  
  <pre><code>          $(document).ready(function()
            {
  
                 $.ajax({
                   type: "GET",
                   url: "phpxml.php",
                   dataType: "xml",
                   success: displayXml
                });
  
            function displayXml(data){
  
              $(data).find("sites").each(function() {
  
                var heading = $(this).find("name").text();
  
                var output = "&lt;li&gt;";
                output += "&lt;h2&gt;" + heading + "&lt;/h2&gt;";
                output += "&lt;/li&gt;";
                $("#place-holder").append(output);
              });
            } 
  
            }); // doc ready
  
            &lt;/head&gt;
  
            &lt;body&gt;
  
            &lt;h2&gt; Ajax / Jquery Test &lt;/h2&gt;
             &lt;ul id='place-holder'&gt;
             &lt;/ul&gt;
           &lt;/html&gt;
  </code></pre>
  
  <p>My php file is below which just echos xml. Can anyone offer any suggestions please ? </p>
  
  <pre><code>            &lt;?php 
  
              echo '&lt;?xml version="1.0" encoding="iso-8859-1" ?&gt;';
  
              echo"
              &lt;sites&gt;
                  &lt;name&gt;
                     J Smith
                   &lt;/name&gt;
  
                  &lt;name&gt;
                     A Coxhead
                   &lt;/name&gt;
  
                  &lt;name&gt;
                     D Wilson
                   &lt;/name&gt;
  
              &lt;/sites&gt;
              " ; 
  
              ?&gt;
  </code></pre>