title: XML Parsing Error: XML or text declaration not at start of entity
body: <p>I have this error in my rss.php</p>
  
  <blockquote>
    <p>XML Parsing Error: XML or text declaration not at start of entity
    Location: <a href="http://blah.com/blah/blah/site/rss.php" rel="noreferrer">http://blah.com/blah/blah/site/rss.php</a>
    Line Number 1, Column 3:<br>
     and this is shown underneath the error</p>
  </blockquote>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;rss version="2.0"&gt;&lt;channel&gt;&lt;item&gt;&lt;title&gt;xzfbcbcxv 123&lt;/title&gt;&lt;description&gt;&lt;p&gt;Description for the rss feed&lt;/p&gt;&lt;/description&gt;&lt;/item&gt;&lt;/channel&gt;&lt;/rss&gt;
  </code></pre>
  
  <p>The</p>
  
  <blockquote>
    <p>----------------^</p>
  </blockquote>
  
  <p>is show between the left side of the page and the ?xml line.</p>
  
  <p>In my rss.php I have</p>
  
  <pre><code>&lt;?php header("Content-type: text/xml"); ?&gt;
  &lt;?php include("includes/database.php");?&gt;
  &lt;?php global $_TWITTER_TABLE, $_HTTP_ADDRESS, $_NEWS_TABLE; ?&gt;
  &lt;?php $str = '&lt;?xml version="1.0" encoding="UTF-8"?&gt;'; ?&gt;
  &lt;?php $str .= '&lt;rss version="2.0"&gt;';?&gt;
  &lt;?php
  $str.='&lt;channel&gt;';
  $sql = "SELECT * FROM $_NEWS_TABLE LIMIT 5";
  $result = mysql_query($sql) or die ($sql."".mysql_error());
      while($row = mysql_fetch_object($result)){
          $str.= '&lt;item&gt;';
                  $str.= '&lt;title&gt;'.$row-&gt;title. '&lt;/title&gt;';
                  $str.= '&lt;description&gt;'.$row-&gt;content. '&lt;/description&gt;';
          $str.= '&lt;/item&gt;';
  }
  $str.= '&lt;/channel&gt;';
  ?&gt;
  &lt;?php $str .= '&lt;/rss&gt;'; 
      echo $str;
  ?&gt;
  </code></pre>