Query elements with XPath.

I'm not sure if this is the most efficient way of doing it, but it's short and really handy.