XElement.Descendants () method accepts name of element to be find.
But it is case-sensitive is there any way to make it case-insensitive
You can use this:
element.Descendants() .Where(x => string.Compare(x.Name, filter, StringComparison.OrdinalIgnoreCase) == 0);
1.4m articles
1.4m replys
5 comments
57.0k users