Leitura XML
Salve a todos...
Seguinte.... tenho a seguinte estrutura XML.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<soapenv:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<v5:ProcessShipmentReply xmlns="http://fedex.com/ws/ship/v6" xmlns:v6="http://fedex.com/ws/ship/v6" xmlns:v5="http://fedex.com/ws/ship/v5">
<v5:HighestSeverity>FAILURE</v5:HighestSeverity>
<v5:Notifications>
<v5:Severity>FAILURE</v5:Severity>
<v5:Source>ship</v5:Source>
<v5:Code>1000</v5:Code>
<v5:Message>General Failure</v5:Message>
<v5:LocalizedMessage>General Failure</v5:LocalizedMessage>
Não consigo nem por decreto ler os nós da estrutura.
$xml = simplexml_load_string($data);
print $xml->HighestSeverity; // não funfa
print $xml[0]; // não funfa. Imprime a p**** toda e não consigo quebrar mais
Já não sei o que faço!!! rsrsrs
Brigadão
Discussão (4)
Carregando comentários...