I need help with some XPath. Say I'm working on XHTML. How to select all elements awhose attribute is hrefNOT empty and does not start with, say, 'mailto:'?
a
href
You can use the start-with () function :
//a[@href != '' and not(starts-with(@href, 'mailto:'))]