I need help with some XPath. Say I am working on XHTML. How do I select all the a
elements whose href
attribute is NOT empty and does not begin with, say, 'mailto:'?
You can use the starts-with() function:
//a[@href != '' and not(starts-with(@href, 'mailto:'))]
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