How to find nodes without id and class attributes in a xhtml document ?
From a comment of @astropanic (the OP):
I want all li nodes that doesn't have id or class attributes
Use:
//li[not(@id) and not(@class)]
This selects all li
elements in the XML document such that the li
element has no id
and no class
attributes.
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