Given this XML, what XPath returns all elements whose prop attribute contains Foo (the first three nodes):
prop
Foo
try this:
//a[contains(@prop,'foo')]
that should work for any "a" tags in the document