Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/01/2012, 06:25
Avatar de Eleazan
Eleazan
 
Fecha de Ingreso: abril-2008
Ubicación: Ibiza
Mensajes: 1.879
Antigüedad: 16 años
Puntos: 326
Respuesta: Leer atributos de un XML

Código PHP:
foreach($image->attributes as $attri){ 
                
$url $attri->url
                echo 
$url
                echo 
"<br>"
            } 
Debería ser algo así
Código PHP:
foreach($image->attributes() as $attri =>$attri_val){ 
                if(
$attri == 'url') echo $attri_val;
                echo 
"<br>"
            } 
O bien
Código PHP:
echo $images->attributes()->url;
echo 
'<br>'
(Así no recorres toooooodos los attributos q tenga!)

Info: Attributes
__________________
>> Eleazan's Source
>> @Eleazan