Quantcast
Channel: get url attribute of rss feed - Stack Overflow
Viewing all articles
Browse latest Browse all 2

get url attribute of rss feed

0
0

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.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images