Getting an XML node using LINQ
- by MarceloRamires
Somehow, using linq I can't test it with this CUF field in the beginning:
<NFe>
<infNFe versao="1.0" Id="NFe0000000000">
<ide>
<cUF>35</cUF>
<!--...-->
</ide>
</NFe>
With the following code:
XDocument document = XDocument.Load(@"c:\nota.xml");
var query =…