http://feeds.bbci.co.uk/news/rss.xml
^^ I'm extracting data from the above website. I can extract most actual elements using the following code:
$xml="http://feeds.bbci.co.uk/news/rss.xml";
$xmlDoc = new DOMDocument();
$xmlDoc->load($xml);
//get elements from "<channel>"
$channel=$xmlDoc->getElementsByTagName('channel')->item(0);
$channel_title = $channel->getElementsByTagName('title')
->item(0)->childNodes->item(0)->nodeValue;
$channel_link = $channel->getElementsByTagName('link')
->item(0)->childNodes->item(0)->nodeValue;
$channel_desc = $channel->getElementsByTagName('description')
->item(0)->childNodes->item(0)->nodeValue;
...but I can't read the attributes from <media:thumbnail height="........." width="......." url=".........">. In this particular case I need to read "url" and I think although it will be possible using string manipulation after getting the whole whole code as String, but I can't seem to be able to find any source where to do this in a simple manner like I do above.