I had a lot of trouble with a XPath query yesterday and didn't find a lot on google, so I'll post the solution I found here.
<foo> <bar xmlns="http://www.w3.org/1999/xhtml">content goes here</bar> </foo>
<foo>
<bar xmlns="http://www.w3.org/1999/xhtml">content goes here</bar>
</foo>
The problem I had was creating a query to get the content of the bar element, since it's not in the default namespace. The solution I found appears to me as a nasty hack, so any comments pointing to a better solution are welcome:
/foo/*[local-name() = 'bar' and namespace-uri() = 'http://www.w3.org/1999/xhtml']