Tour Xml With PHP

0

Good as I can do to run an xml with php I used simpleXml. But I do not know how to access a third child node for example:

<Factura>
     <Cliente>
           <Nombre>Juan</Nombre>
     </Cliente
</Factura>

I would like to read the value of the Node Name ... Regards.

    
asked by Kevin A 01.06.2018 в 07:39
source

1 answer

0

I managed to solve with

$Xml=simplexml_load_string($Factura['StrXml']);
foreach ($Xml->Cliente as $nodo) 
    {
    echo $nodo->Nombre;
 }

Greetings ...

    
answered by 02.06.2018 в 03:41