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
You could try
//*[namespace-uri()='http://foo.example.com' or @*[namespace-uri()='http://foo.example.com']]
It will give you element foo:bar and element doodah (if you change tal:quux to foo:quux in your XML-data):
tal:quux
foo:quux
Content Content Content
Is that what you want?