error){ // Show the error print "

Error:

\n

$rss->error

"; }else{ // Otherwise, we have the data, so we call the parse method $parser = xml_parser_create(""); xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, "ISO-8859-1"); $rss->parse($parser); // The showHeading can accept a paramater that will be used // as the tag to wrap the heading. In this case, we're wrapping // the title in an

tag // $rss->showHeading("H3"); // Display the image if there is one $rss->showImage("left"); // If the RSS feed provides a link // if($rss->link){ // Display it // print "

Provided courtesy of:
\n"; // $rss->showLink(); // } // Display the description // $rss->showDescription(); // Show the news stories $rss->showStories(); } ?>