I\'m new to working with XML, and I\'ve encountered a weird problem while trying to get a specific tag from a spring.net configuration file. After trying to narrow down the
Just for completeness sake:
var lst = doc.Descendants("{aaa}B").ToList();
(what the other told is correct, but I wanted to give another option :-) )
For ultra completeness-sake, if you want to search ignoring the namespace:
var lst = doc.Descendants().Where(p => p.Name.LocalName == "B").ToList();