andando avanti...
Codice PHP:
function articoli($n)
{
$no=0;
$url="http://www.google.com/reader/public/atom/user%2F01970069711843687633%2Fstate%2Fcom.google%2Fbroadcast";
$xml=simplexml_load_file($url);
foreach($xml->entry as $item)
{
echo "<h2>".$item->title."</h2>";
echo "".$item->published."";
$l = $item->getElementsByTagName("link");
$link = $l->getAttribute("href");
echo "<a herf='".$link."' target='_blank'>Source</a>
";
$no++;
if($no==$n){break;}
}
il problema ora si pone con l'href del link... non lo trova...