Cita:
Iniciado por alanfcarta
ok ahora me fijo, lo voy a googlear a ver como se usa. muchas gracias. si sabes de algún tutorial copado avisa.
muchas gracias
Probá con algo así:
Código PHP:
$noticias = simplexml_load_file('rss.xml');
foreach ($noticias->item as $noticia) {
echo "<b>$noticia->title:</b> ";
echo "$noticia->description<br><br>n";
}
Obviamente cambialo por tus campos o simplemente haces:
Código PHP:
print_r($noticias);
También podés ver la web de php ( oficial ):
http://php.net/manual/es/book.simplexml.php