Version: 1.0

Type: Sample Code (HOWTO)

Category: Other

License: GNU General Public License

Description: A simple way to display RDF info using SimpleXML. This example uses Fresmeat realses RDF file, but you can change it to display any RDF in the web


	<title>RDF Test</title>
	<link rel="stylesheet" type="text/css" href="style.css"/>

// RDF - Index
$URL = "";
$rdf = simplexml_load_file($URL);
	<h3>Hoy en Freshmeat</h3><?	
		foreach($rdf->item as $item) { ?>
	<li><a href="<?= $item->link; ?>"><?= $item->title; ?></a></li><?
} ?>