Tengo un codigo el cual tiene komo funcion imprimir el contenido de una etiqueta xml
Código PHP:
<?php
// require the twitter library
require "twitter.lib.php";
//inicializar variable
$id = '99724875';
// initialize the twitter class
$twitter = new Twitter($id);
// fetch your profile in xml format
$xml = $twitter->showUser(); //hasta aki funca
//proceso
$texto = new SimpleXMLElement($xml);
foreach($texto->user as $user){
echo $user->name;
}
?>
alguien podria encontrar algun error o observacion porke no me imprime el kontenido del campo??
gracias gracias gracias