title: Google Chrome rendering XML as text for RSS feed
body: <p>I have this script to generate an XML file for an RSS feed.  Works great in every browser except Chrome.  Chrome just renders the XML as text.  Something to do with <code>header("Content-Type: application/rss+xml; charset=ISO-8859-1");</code> possibly?</p>
  
  <p>This is the code I'm using:</p>
  
  <pre><code>&lt;?php
  
  $linkUp = "http://localhost/sites/myBlog/";
  
  header("Content-Type: application/rss+xml; charset=ISO-8859-1");
  
  $rssfeed  = '&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;';
  $rssfeed .= '&lt;rss version="2.0"&gt;';
  $rssfeed .= '&lt;channel&gt;';
  $rssfeed .= '&lt;title&gt;Mytitle&lt;/title&gt;';
  $rssfeed .= '&lt;link&gt;' . $linkUp . '&lt;/link&gt;';
  $rssfeed .= '&lt;description&gt;Mydescription&lt;/description&gt;';
  $rssfeed .= '&lt;language&gt;en-us&lt;/language&gt;';
  $rssfeed .= '&lt;copyright&gt;&amp;copy; ' . strftime('%Y') .  ' . " " . ' . $linkUp . '&lt;/copyright&gt;';
  
  
  $query = "SELECT * FROM rss";
  $result = $db-&gt;query($query);
  
  while($row = $db-&gt;fetch_array($result)) {
  
      $rssfeed .= '&lt;item&gt;';
      $rssfeed .= '&lt;title&gt;' . $row['rss_title'] . '&lt;/title&gt;';
      $rssfeed .= '&lt;description&gt;' . $row['rss_description'] . '&lt;/description&gt;';
      $rssfeed .= '&lt;link&gt;' . $row['rss_link'] . '&lt;/link&gt;';
      $rssfeed .= '&lt;pubDate&gt;' . date("D, d M Y H:i:s O", strtotime($date)) . '&lt;/pubDate&gt;';
      $rssfeed .= '&lt;/item&gt;';
  }
  
  $rssfeed .= '&lt;/channel&gt;';
  $rssfeed .= '&lt;/rss&gt;';
  
  echo $rssfeed;
  
  ?&gt;
  </code></pre>