lendo xml
-
gostaria de saber como ler os intens da nfe usando a funcao xml
<det nItem="1">
<prod>
<cProd>5334</cProd>
<cEAN>7898907318136</cEAN>
<xProd>ARMACAO PRESBOW 1 POLO</xProd>
<NCM>72122010</NCM>
<CFOP>5102</CFOP>
<uCom>UN</uCom>
<qCom>5.0000</qCom>
<vUnCom>7.0000000000</vUnCom>
<vProd>35.00</vProd>
<cEANTrib>7898907318136</cEANTrib>
<uTrib>UN</uTrib>
<qTrib>5.0000</qTrib>
<vUnTrib>7.0000000000</vUnTrib>
<indTot>1</indTot>
</prod>
<imposto>
<ICMS>
<ICMSSN102>
<orig>0</orig>
<CSOSN>102</CSOSN>
</ICMSSN102>
</ICMS>
<PIS>
<PISNT>
<CST>08</CST>
</PISNT>
</PIS>
<COFINS>
<COFINSNT>
<CST>08</CST>
</COFINSNT>
</COFINS>
</imposto>
</det>
<det nItem="2">
<prod>
<cProd>4130</cProd>
<cEAN>7898911343490</cEAN>
<xProd>JOELHO 90 ESG 75 FORTLEV</xProd>
<NCM>39174090</NCM>
<CEST>1000600</CEST>
<CFOP>5102</CFOP>
<uCom>UN</uCom>
<qCom>1.0000</qCom>
<vUnCom>8.0000000000</vUnCom>
<vProd>8.00</vProd>
<cEANTrib>7898911343490</cEANTrib>
<uTrib>UN</uTrib>
<qTrib>1.0000</qTrib>
<vUnTrib>8.0000000000</vUnTrib>
<indTot>1</indTot>
</prod>
<imposto>
<ICMS>
<ICMSSN102>
<orig>0</orig>
<CSOSN>102</CSOSN>
</ICMSSN102>
</ICMS>
<PIS>
<PISNT>
<CST>08</CST>
</PISNT>
</PIS>
<COFINS>
<COFINSNT>
<CST>08</CST>
</COFINSNT>
</COFINS>
</imposto>
</det> -
Bom dia amigo, dá uma olhada nesse video, é um webinar demontrando como trabalhar com XML, veja se ajuda.