Mandatory channel metadata

Each channel is required to contain at least three elements: 'title', 'link', and 'description'.

You can use the getLink, getTitle, and getDescription methods to obtain and present this data to the user:


require_once('somepath/xml_domit_rss.php');
$rssdoc =& new xml_domit_rss_document('http://www.somesite.com/rss.xml', 
							'./', 3600);
$numChannels = $rssdoc->getChannelCount();

for ($i = 0; $i < $numChannels; $i++) {
	$currentChannel =& $rssdoc->getChannel($i);
	
	//echo channel info
	echo "<h2><a href=\"" . $currChannel->getLink() . "\" target=\"_child\">" . 
						$currChannel->getTitle() . "</a>";
	echo "  " . $currChannel->getDescription() . "</h2>\n\n";
	
	//iterate through item elements
	//..
}


Documentation generated by ClassyDoc, using the DOMIT! and SAXY parsers.
Please visit Engage Interactive to download free copies.