| 
<?
/* grab the most-interesting Flickr */
 $db = new XMLTree("http://feeds.feedburner.com/InterestingFlickrNoFlowers?format=xml");
 
 /* show the first item's title */
 
 // the ugly way
 print_r($db->xml_array['root']['rss']['channel']['item'][0]['title']);
 
 // the OO way
 print_r($db->root->rss->channel->item[0]->title);
 ?>
 |