XPathmania is a terrific Visual Studio plugin which lets you run XPath queries against an XML document in a VS XML editor window.
Nice highlighted results, as seen below.
Don Demansk I mean Don XML talks about the plugin on his blog. Obviously it’s not a brand new tool, but it’s highly useful for figuring out PITA XPath expressions.
XPathmania is part of the highly useful Mvp.Xml project out on CodePlex. I’m using a couple of their libraries in my projects, one of which, EXSLT.NET, will hopefully solve a nasty problem I’m having trying to use XPath for querying poorly written HTML which I’ve converted to XHTML via Tidy. More on that later after I actually figure it out…