Hello. I'm trying to get a Node from an xml NFe and this may be showing up the image error.
Atthebeginningoftheclass,aprivateXDocumentxDoc;
variablewascreated.Thexmlfileisinsidethedebugfolder.
EvenputtingsothesameErrorappears:
XElement_xDetModelo=newXElement(xDoc.Element("nfeProc").Element("NFe").Element("infNFe").Element("det"));
Below is part of the XML code I'm trying to get:
<?xml version="1.0" encoding="UTF-8"?>
<nfeProc xmlns="http://www.portalfiscal.inf.br/nfe" versao="3.10">
<NFe xmlns="http://www.portalfiscal.inf.br/nfe">
<infNFe Id="NFeXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" versao="3.10">
<ide>
...
</ide>
<emit>
...
</emit>
<dest>
...
</dest>
<det nItem="1">
<prod>
...