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);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With