Ver Mensaje Individual
  #4 (permalink)  
Antiguo 18/10/2008, 09:13
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 15 años, 9 meses
Puntos: 416
Respuesta: Script para mostrar XML

Código php:
Ver original
  1. <?php
  2. // The file test.xml contains an XML document with a root element
  3. // and at least an element /[root]/title.
  4.  
  5. if (file_exists('test.xml')) {
  6.     $xml = simplexml_load_file('test.xml');
  7.  
  8.     print_r($xml);
  9. } else {
  10.     exit('Failed to open test.xml.');
  11. }
  12. ?>

Mira la documentacion.