I wrote a small plugin that allows to enter and evaluate an XPath expression
in any XML-document that is opened in IDEA.
It will highlight the resulting nodes in the editor or show the result in a
message box if it is an XPath primitive value (string, number, boolean).
Find it at : http://www.intellij.org/twiki/bin/view/Main/XPathViewPlugin