title: Using SimpleXML to read RSS feed
body: <p>I am using PHP and simpleXML to read the following rss feed:</p>
  
  <pre><code>http://feeds.bbci.co.uk/news/england/rss.xml
  </code></pre>
  
  <p>I can get most of the information I want like so:</p>
  
  <pre><code>$rss = simplexml_load_file('http://feeds.bbci.co.uk/news/england/rss.xml');
  
  echo '&lt;h1&gt;'. $rss-&gt;channel-&gt;title . '&lt;/h1&gt;';
  
  foreach ($rss-&gt;channel-&gt;item as $item) {
     echo '&lt;h2&gt;&lt;a href="'. $item-&gt;link .'"&gt;' . $item-&gt;title . "&lt;/a&gt;&lt;/h2&gt;";
     echo "&lt;p&gt;" . $item-&gt;pubDate . "&lt;/p&gt;";
     echo "&lt;p&gt;" . $item-&gt;description . "&lt;/p&gt;";
  } 
  </code></pre>
  
  <p>But how would I output the thumbnail image that is in the following tag:</p>
  
  <pre><code>&lt;media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/51078000/jpg/_51078953_226alanpotbury.jpg"/&gt;  
  </code></pre>