I wonder if there is a Xpath equivalent to http://gskinner.com/RegExr/ for Regex?
In this way you could just type an xpath query and it will show you what elements were selected.
I haven't found anything as simple as http://gskinner.com/RegExr/ yet.
I wonder if there is a Xpath equivalent to http://gskinner.com/RegExr/ for Regex?
In this way you could just type an xpath query and it will show you what elements were selected.
I haven't found anything as simple as http://gskinner.com/RegExr/ yet.
Here is one I like using.
Paste in your XML, type your XPath expression and see what was selected.
It also has a pretty print options and an XSLT transformation option.
Xselerator has an "XPath Query Analyser". Also it's a good IDE wich allow the use of many processors and viewers.
Look up the XPath Visualizer -- has versions for IE and for Mozilla/Firefox
This is a tool I wrote in 2000. Since then it has had many thousands of downloads and there hasn't been even a single unhappy user.
Warning: topxml.com has a trojan -- don't click on the above links unless you have a good malware protector.
Here are some screenshots from the tool, showing:
The inline- hilighting of the selected nodes
Evaluating every possible XPath expression, not only those that select nodes.
Defining and using variables in the XPath expressions.
Remembering all used XPath expressions.
Defining and using XSLT keys.














I've got something like that on my xml tools page: http://www.flynn1179.net/xml/
Hi,
I have also made a online XPath evaluator. It supports XPath 2.0. It is available at http://www.xmltools.dk and here is a few screenshots:
XPath 2.0 evaluations which renders a sequence of numbers:

And, elements and attributes are marked when searched for:
