Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/07/2010, 16:16
Avatar de lolitashu
lolitashu
 
Fecha de Ingreso: enero-2010
Ubicación: Chile / Santiago / Quilicura
Mensajes: 50
Antigüedad: 14 años, 3 meses
Puntos: 2
Drama con SimpleXMLElement

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