Tema: Php-xml
Ver Mensaje Individual
  #11 (permalink)  
Antiguo 22/12/2010, 12:43
walterdevel
 
Fecha de Ingreso: diciembre-2010
Mensajes: 788
Antigüedad: 13 años, 4 meses
Puntos: 51
Respuesta: Php-xml

Cita:
Iniciado por alanfcarta Ver Mensaje
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