Search code examples
xpathdevtools

Best XPath tools


What tools are you guys using for XPath and why? Right now I'm using

SketchPath seems to stand out the most to me because it actually helps you create the xpath and it is very advanced. If you haven't tried it you should.

Cons to SketchPath: you have to install it on the machine, otherwise it is fantastic.

Cons to WhiteBeam: you have to upload your file which I don't always want to do for security reasons and the file size you can upload has some limit on it, and uploading a file is annoying anyways. Also I think there might be some subtle differences between the xpath used for that tool and when running a .NET app. But don't remember any right now. Just keep it in mind.


Solution

  • If you're in a web dev environment, Firefox has a number of great tools for XPath support and analysis:

    • Firebug has built-in XPath support
    • XPath Checker I have found to be great

    and also maybe of use:

    • XPath Runner
    • FireXPath

    Be careful with Firebug - the right-click "copy XPath" command copies the path as all lower-case, and some XML parsers (like the MXSML parser used in FinalBuilder) are case-sensitive - so you'll need to correct the casing of your Firebug-copied XPath statement otherwise your parser won't find any matching nodes.