Ver Mensaje Individual
  #9 (permalink)  
Antiguo 23/03/2012, 02:42
Avatar de syntex
syntex
 
Fecha de Ingreso: noviembre-2002
Ubicación: Cataluña
Mensajes: 978
Antigüedad: 21 años, 5 meses
Puntos: 4
Respuesta: Consulta de archivo XML

Solo e podido consultarlo así:

Código PHP:
if ($sxe = new SimpleXMLElement(file_get_contents $ruta_PartNumber ), NULLfalse))
                {
                    echo 
$ruta_PartNumber."<br>";
                    if (
$sxe->{'files.index'}->file['HighPic'])
                    {
                        echo 
"-".$sxe->{'files.index'}->file['HighPic']."<br>";
                        echo 
"-".$sxe->{'files.index'}->file['HighPicSize']."<br>";
                        echo 
"-".$sxe->{'files.index'}->file['HighPicWidth']."<br>";
                        echo 
"-".$sxe->{'files.index'}->file['HighPicHeight']."<br>";
                        echo 
"*************************************<br>";
                      }
                    
                    return;
                    
                } 
Como podria hacerlo con foreach? Por si tuviese 2 objetos de xml {files.index->file} o más imagenes?
__________________
------------------------------------------------
La paciencia es el rey de la ciencia
------------------------------------------------