I need to parse a complex XML file, so I decided to do that using LINQ with xDocument.
I've done everything that (I think) is needed and, when I execute the aspx file, nothing happens. Debuging it, there's no one error, but the returning is always nothing. On debug mode, I see that de XML file is right loaded, but my code is unable to find any node and value using linq.
Below you will find the code that I'm using and also a little part of the complete XML file. On this code, I'm just trying to get few nodes values for example in this forum, but on the real code I will need to get all XML information.
BELLOW YOU CAN SEE MY CODE.
XDocument xmlFile = XDocument.Load(@"C:\TESTEnfe.xml");
var a = from c in xmlFile.Descendants("nfeProc").Elements("NFe").Elements("infNFe").Elements("ide")
cUF = c.Element("cUF").Value,
cNF = c.
View Complete Post