title: how to generate xml file using php
body: <p>Hello I have been trying to make a forum and I did that correctly but the problem is that the whole page was reloading which means that if you have too much comments on the page it will always redirect you to the top and you have to scroll down to the last comment so I learned ajax to fix that but however I face up this problem says "error on line 28 at column 323: Entity 'ldquo' not defined" what is the problem please explain here is the PHP that generates XML</p>
  
  <pre><code>&lt;?php
  header('Content-Type: text/xml');
  echo '&lt;?xml version="1.0" encoding="UTF-8" standalone="yes" ?&gt;';
  ?&gt;
  
  &lt;?php
  require 'connect.inc.php';
  $sql= $db-&gt;query("SELECT * FROM comments");
  $results = $sql-&gt;fetchAll(PDO::FETCH_ASSOC);
  
  
  echo '&lt;comments&gt;'."\n";
  foreach($results as $result)
  {
     echo '&lt;comment&gt;'."\n";
          echo $result['post']."\n";
     echo '&lt;/comment&gt;'."\n";
  }
  echo '&lt;/comments&gt;';
  
  ?&gt;
  </code></pre>