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
Use:
//*[namespace-uri()='yourNamespaceURI-here'
or
@*[namespace-uri()='yourNamespaceURI-here']
]
the predicate two conditions are or-ed with the XPath or operator.
The XPath expression thus selects any element that either: