Ver Mensaje Individual
  #22 (permalink)  
Antiguo 18/06/2008, 11:14
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Zend Framework consumiendo Web Service

Mmm ni con XPath lee el nodo, pero puedes hacer algo así:
Código PHP:
<?php
$file 
file_get_contents"test.xml" );
$file str_replace"eltiempo:"""$file );
$xml simplexml_load_string($file);
$visitas $xml->actividad['visitas'];
$votos $xml->actividad['votos'];

echo 
"<pre>";
echo 
$visitas "\n";
echo 
$votos;
echo 
"</pre>";
?>
Saludos.