Hi
We´v XML files from NFe (Brazil Invoice Pattern) and I try capture the data from it.
I have some trouble to obtain it.
The attached file is a xml example file. To understand my problem, I extract and format 2 segments from the xml:
<emit>
<CNPJ>03274615000102</CNPJ>
<xNome>ARQDIGITAL LTDA</xNome>
<xFant>ARQDIGITAL LTDA</xFant>
<enderEmit>
<xLgr>SRTVS QD 701 BLOCO "O" SALA 409 ED. MULT</xLgr>
<nro>S/N</nro>
<xCpl>ED. MULTIEMPRES</xCpl>
<xBairro>ASA SUL</xBairro>
<cMun>5300108</cMun>
<xMun>BRASILIA</xMun>
<UF>DF</UF>
<CEP>70340000</CEP>
<cPais>1058</cPais>
<xPais>BRASIL</xPais>
<fone>6130304200</fone>
</enderEmit>
<IE>0739878300104</IE>
<IM>000739878300104</IM>
<CNAE>6203100</CNAE>
<CRT>3</CRT>
</emit>
<dest>
<CNPJ>10772401000113</CNPJ>
<xNome>COOPERATIVA DE CREDITO DE LIVRE ADMISSAO DE ASSOCIADOS DO NO</xNome>
<enderDest>
<xLgr>AV. PRESIDENTE VARGA, No 160</xLgr>
<nro>S/N</nro>
<xBairro>ANGELIM</xBairro>
<cMun>1505502</cMun>
<xMun>PARAGOMINAS</xMun>
<UF>PA</UF>
<CEP>68625130</CEP>
<cPais>1058</cPais>
<xPais>BRASIL</xPais>
<fone>9137295221</fone>
</enderDest>
<IE>ISENTO</IE>
<email>andreia_capelari@sicredi.com.br</email>
</dest>
In the example above, the CNPJ and xNome are present in nodes <emit> and <dest>.
Can anyone help me to do a XPath syntax to obtain this data? or give me some tips
Best Regards