XElement.Descendants () make it case-insensitive
descendant, linq, xelement, xml, xpath
Solution
You can use this:
element.Descendants()
.Where(x => string.Compare(x.Name, filter,
StringComparison.OrdinalIgnoreCase) == 0);
Problem
XElement.Descendants () method accepts name of element to be find. But it is case-sensitive is there any way to make it case-insensitive