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')]);
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'))]);
© 2022 - 2024 — McMap. All rights reserved.