I'm trying to read anXML file using 'simplexml_load_file' and it works fine, except with one file that has these tags '',''. When I try to read this file, it fails like it was a blank file. Than I try to remove this character ':' and than it works...
Is there a better way to read this, without removing the ':' character?
here the XML
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<nfeCabecMsg xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NfeAutorizacao">
<cUF>43</cUF>
<versaoDados>3.10</versaoDados>
</nfeCabecMsg>
</soap:Header>
<soap:Body>
<nfeAutorizacaoLoteResult xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NfeAutorizacao">
<retEnviNFe xmlns="http://www.portalfiscal.inf.br/nfe" versao="3.10">
<tpAmb>2</tpAmb>
<verAplic></verAplic>
<cStat>104</cStat>
<xMotivo>Lote processado</xMotivo>
<cUF>43</cUF>
<dhRecbto>2014-10-29T08:49:23-02:00</dhRecbto>
<protNFe versao="3.10">
<infProt>
<tpAmb>2</tpAmb>
<verAplic></verAplic>
<chNFe></chNFe>
<dhRecbto>2014-10-29T08:49:23-02:00</dhRecbto>
<nProt>143140001934763</nProt>
<digVal></digVal>
<cStat>100</cStat>
<xMotivo>Autorizado o uso da NF-e</xMotivo>
</infProt>
</protNFe>
</retEnviNFe>
</nfeAutorizacaoLoteResult>
</soap:Body>
</soap:Envelope>