Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/03/2012, 10:44
coke_135
 
Fecha de Ingreso: agosto-2003
Mensajes: 122
Antigüedad: 20 años, 8 meses
Puntos: 0
Respuesta: No consigo leer XML

Hola Charles87, gracias por tu ayuda.

Sí, cargarlo carga igual. Si hago un print_r me sale "algo" en los dos casos:

Cita:
SimpleXMLElement Object ( [CD] => Array ( [0] => SimpleXMLElement Object ( [TITLE] => Empire Burlesque [ARTIST] => Bob Dylan [COUNTRY] => USA [COMPANY] => Columbia [PRICE] => 10.90 [YEAR] => 1985 ) [1] => SimpleXMLElement Object ( [TITLE] => Hide your heart [ARTIST] => Bonnie Tyler [COUNTRY] => UK [COMPANY] => CBS Records [PRICE] => 9.90 [YEAR] => 1988 ) [2] => SimpleXMLElement Object ( [TITLE] => Greatest Hits [ARTIST] => Dolly Parton [COUNTRY] => USA [COMPANY] => RCA [PRICE] => 9.90 [YEAR] => 1982 ) [3] => SimpleXMLElement Object ( [TITLE] => Still got the blues [ARTIST] => Gary Moore [COUNTRY] => UK [COMPANY] => Virgin records [PRICE] => 10.20 [YEAR] => 1990 ) [4] => SimpleXMLElement Object ( [TITLE] => Eros [ARTIST] => Eros Ramazzotti [COUNTRY] => EU [COMPANY] => BMG [PRICE] => 9.90 ............................
Si lo intento con el XML de Mediainfo:
Cita:
SimpleXMLElement Object ( [@attributes] => Array ( [version] => 0.7.50 ) [File] => SimpleXMLElement Object ( [track] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => General ) [Complete_name] =>video.avi [Format] => AVI [Format_Info] => Audio Video Interleave [File_size] => 630 MiB [Duration] => 41mn 13s [Overall_bit_rate] => 2 136 Kbps [Writing_application] => VirtualDubMod 1.5.10.2 (build 2540/release) [Writing_library] => VirtualDubMod build 2540/release ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => Video ) [ID]....................