I sometimes do this:
XElement.Descendants("mynodename");
is there a way to do something like this"
XElement.Descendants("mynodename or myothernodename");
Not in one method call - but you can use:
element.Descendants()
.Where(x => x.Name.LocalName == "mynodename"
|| x.Name.LocalName == "myothernodename")
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