I'm looking for a way to get the value of the url attribute with the media:thumbnail tag of this RSS feed.
I currently have this code:
//getNamespaces
$ns=$rss->getNamespaces(true);
foreach($rss->entry as $entry) {
//set children of namespaces
$yt=$entry->children($ns['yt']);
$media=$entry->children($ns['media']);
}
But the media element/object for the tag I want is empty.
I have tried using simplexml attributes without success.