title: Read XML from YouTube videos
body: <p>How can I read XML from YouTube? I tried the following.</p>
  
  <pre><code> $xml = new XMLReader();
   $xml-&gt;open('http://gdata.youtube.com/feeds/api/videos/1uwOL4rB-go');
  
   $r = array();
   while($xml-&gt;read()) {
       $r[] = array($xml-&gt;name =&gt; $xml-&gt;value);
   }
  </code></pre>
  
  <p>I got this far but it doesnt get the necesary info I need like video duration.</p>