This is an old revision of the document!
XPath Notes and Tips and Tricks
Finding all elements without a class
- Syntax
//nodeset definition/[ not(@attribute_name <logical check>)]
- Examples
//accesspoint//*[ not(@class)] would be all points under the Accesspoint node and all elements that didn't have an attribute called class
//accesspoint//*[not(@class='hidden']) would be all points under the Accesspoint node and all elements that didn't have an attribute called class with a value of hidden