I would like to do a negative xpath query like this:
$xpath->query(//a[DoesNotContain(@class,'some_class')]);
I know about this
$xpath->query(//a[contains(@class,'some_class')]);
$xpath->query(//a[not(contains(@class, 'some_class'))]);
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