a:1:



	{	i:0;

		a:5:{s:4:"data";



		s:9:"Post Title";

		

		s:7:"attribs";

		

		a:0:{}s:8:"xml_base";

		

		s:0:"";s:17:"xml_base_explicit";

		

		b:0;

		

		s:8:"xml_lang";

		

		s:0:"";

		

		}

	}









$feed = new SimplePie();

$feed->set_feed_url('http://video.google.com/videofeed?type=top100new&num=20&output=rss');

$feed->enable_cache(false);

$success = $feed->init();

$feed->handle_content_type('text/plain');

 

if ($success)

{

	if ($item = $feed->get_item(0))

	{

		// This is probably a bad example because we already support <media:content> natively, but it shows you how to parse through the nodes.

		$media_group = $item->get_item_tags('http://search.yahoo.com/mrss/', 'group');

		$media_content = $media_group[0]['child']['http://search.yahoo.com/mrss/']['content'];

		$file = $media_content[0]['attribs']['']['url'];

		echo $file;

	}

	else

	{

		echo 'Error: Could not get first item';

	}

}

else

{

	echo $feed->error();

}	







a:1:{i:0;

		a:5:{s:4:"data";



		s:9:"Bag On Em";

		

		s:7:"attribs";

		

		a:0:{}s:8:"xml_base";

		

		s:0:"";

		

		s:17:"xml_base_explicit";

		

		b:0;s:8:"xml_lang";

		

		s:0:"";



		}



	}



