registerXPathNamespace('gphoto', 'http://schemas.google.com/photos/2007'); $xml->registerXPathNamespace('media', 'http://search.yahoo.com/mrss/'); if($gTitle == null){ // if empty Gallery title will be "user id's Photo Gallery" $nickname = $xml->xpath('//gphoto:nickname'); $gTitle =$nickname[0]."'s Photo Gallery"; } ?>
'.$feed->title.' '.$nphotos[0].'