Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an online tester for xPath selectors? [closed]

Tags:

xml

xslt

xpath

People also ask

What is XPath tester?

The XPath tester fully supports XML namespaces, but the declarations MUST be explicit and MUST be on the root XML element. See the XPath Examples section for details. Allows you to test your XPath expressions/queries against an XML file.

What is XPath tool?

XPath Development Tools XPath (XML Path Language) is syntax for selecting the elements and attributes of an XML document by navigating its tree-like structure. Developers use XPath expressions to select XML nodes or node-sets based on a variety of criteria.

What is XPath parsing?

It defines a language to find information in an XML file. It is used to traverse elements and attributes of an XML document.


I notice that the only "online" checker in the answers seems a bit clunky. It requires submission to a server, and it doesn't handle namespaces properly.

I thought I could do better, and that such a tool would be quite useful, so I made one. I realize it is slightly self-promoting to mention it here, but it does specifically answer the question, I think!

http://chris.photobooks.com/xml/default.htm

Mine can apply an xpath expression to an arbitrary XML document and display the results. It can also beautify, or pretty-print an XML document, and apply an XSLT transformation to it. All processing is done by the browser, and it should work in IE6+, Firefox, Opera, Chrome, and Safari.

Please let me know if you encounter any issues with it!


This is not an online tool; instead it's a Windows app, more along the lines of RegexBuddy, but for XPath.

XPathVisualizer.

screen shot http://i29.tinypic.com/1zwp5ix.jpg


Edit: The XPath Visualizer for IE now has a new, safer home, thanks to the kindness of Lars Huttar. Also there is the XPath Visualizer for FF.

The XPath Visualizer has been available for more than 10 years and has helped thousands of people learn XPath the fun way. Available for IE and for FireFox.

The XPath Visualizer is a popular tool for learning XPath by playing with XPath expressions. Free and open source.

Allows any XPath expression to be evaluated against a given XML document and displays the results hi-lighted in the xml document (if they are node(s)) or in a separate box (if the results are atomic values).

Allows xsl:variable-s to be defined and then used in XPath expressions.

Allows xsl:key-s to be defined and then referenced by key() functions within XPath expressions.


Yep! Try the XPath Checker extension for Firefox. It's a handy tool.


Here is a nice one: http://www.xpathtester.com/


You can also use Notepad++ with it's XMLTools plugin - it has xPath evaluator


i use this one

http://xpath.online-toolz.com/tools/xpath-editor.php