title: Simplexml & php rss feed (view image from rss feed)
body: <p>I am trying to parse the yahoo pipe rss feed. this is the feed</p>
  
  <pre><code>&lt;channel&gt;
  .......
  
  &lt;item&gt;
  ......
  &lt;media:content url="http://cdn.c.photoshelter.com/img-get/I0000IhrAERY1qOs/s/900/900/Indonesia-Java-Bandung-3106-Bandung.jpg" /&gt;
  &lt;media:thumbnail url="http://cdn.c.photoshelter.com/img-get/I0000IhrAERY1qOs/s/900/900/Indonesia-Java-Bandung-3106-Bandung.jpg" /&gt;
  &lt;/item&gt;
  &lt;/channel&gt;
  </code></pre>
  
  <p>How do I get the image (<code>&lt;media:thumbnail</code>) from that RSS feed? I've done to try this, but there is no result. this is my code</p>
  
  <pre><code>&lt;? $feed = file_get_contents('http://pipes.yahoo.com/pipes/pipe.run?_id=ce435780a2b72feb40c0b7446b92e660&amp;_render=rss');
  $rss = new SimpleXmlElement($feed);
  foreach ($rss-&gt;channel-&gt;item as $item) {
  $ns_dc = $item-&gt;children('http://search.yahoo.com/mrss/');
  echo $ns_dc-&gt;thumbnail ; echo '&lt;br&gt;';
  }
  ?&gt;
  </code></pre>
  
  <p>the problem is "SimpleXmlElement" do not generate category name and media thumbnail image.
  help me please
  Thanks!</p>