items = $items; } function render($title) { // trash the output, just in case @ ob_end_clean(); ob_start(); header('Content-Type: text/xml'); echo "\n\n" ."\n\n"; echo "baselink.$this->resource."\">\n" ."\t".htmlentities($title, ENT_QUOTES, 'UTF-8') ."\n"."\t".$this->baselink.$this->resource."\n" ."\t\n" ."\n\n"; if ($this -> items) { foreach ($this -> items -> feeds as $feed) { foreach($feed->items as $item) { $xmlTitle = htmlentities($item->title, ENT_QUOTES, 'UTF-8'); echo "url."\">\n"."\t$xmlTitle\n"."\t".$item->url."\n" // http://www.jschreiber.com/archives/2004/03/php_and_timesta_1.html ."\t".rss_date('Y-m-d\TH:i:sO', $item->date)."\n" ."\t$xmlTitle\n"; if (count($item -> tags)) { echo "\t\n"."\t\t\n"; foreach ($item -> tags as $tag) { echo "\t\t\tbaselink.$tag."\" />\n"; } echo "\t\t\n". "\t\n"; } echo "\n\n"; } } } echo "\n"; } } ?>