Short and sweet:
//*[@foo]
Of course you should use a more specific expression. But with [@attributeName] you get all nodes which have that attribute.
Short and sweet:
//*[@foo]
Of course you should use a more specific expression. But with [@attributeName] you get all nodes which have that attribute.