Given this XML, what XPath returns all elements whose prop attribute contains Foo (the first three nodes):
prop
Foo
Have you tried something like:
//a[contains(@prop, "Foo")]
I've never used the contains function before but suspect that it should work as advertised...