Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/08/2011, 06:49
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 15 años
Puntos: 1517
Respuesta: leer estrucutura xml de dos nodos anidados

Yo no tuve problemas , ejemplo
Código PHP:
Ver original
  1. <?php
  2. $xml = '<response>
  3. <status>ERROR</status>
  4. <message>Invalid customer-id: 7180465ddd</message>
  5. </response>';
  6. $dom = new DOMDocument();
  7. $dom->loadXML($xml);
  8. $list = $dom->getElementsByTagName("response");
  9. if ($list->length > 0) {
  10.     echo $list->item(0)->textContent;
  11. }
__________________
Verifica antes de preguntar.
Los verdaderos amigos se hieren con la verdad, para no perderlos con la mentira. - Eugenio Maria de Hostos