I am attempting to get information from the yahoo music news xml file, found here:
I have gotten everything, except I have no idea how to get the value of "url" from the "media:content" tag. Here is what I have so far:
<?php
$newsxml = simplexml_load_file('http://news.yahoo.com/rss/music');
foreach ($newsxml->channel->item as $newsstory){
$newsimage = $newsstory['media']->content->url;
}
?>
Any help in solving my problem would be greatly appreciated. Thanks!