I\'m trying to use XPath to find all elements that have an element in a given namespace.
For example, in the following document I want to find the foo:bar
foo:bar
I'm not sure if this is what you mean, but by only deleting one char in your XPath you get all elements in a certain namespace:
//*[namespace-uri()='http://foo.example.com']