Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xpath equivalent to http://gskinner.com/RegExr/ for Regex?

Tags:

xml

xpath

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.

like image 775
never_had_a_name Avatar asked Aug 15 '10 15:08

never_had_a_name


1 Answers

Some XPath visualisers

XPath applications

  • XPath Visualizer -- Windows application, open source, requires .NET v. 3.5. Results shown as highlighted code. This is probably not the same tool that Dimitre already suggested although they have same name.
  • AquaPath -- Macintosh application, open source. Results shown as highlighted code.

XML editors with somehow similar functionality

  • XMLMate -- Plugin to Macintosh application TextMate, open source.
  • Xmplify -- Macintosh application, still in beta.
  • Editix -- Cross platform application (Windows, Macintosh, Linux), requires Java 5.x or newer

Online services

  • Allans Online XPath Tester -- XML document can be pasted to textarea or referenced via URL. As a result prints the document contents with selected nodes highlighted below the textarea
  • XPath Query Expression Tool -- XML input via textarea. Doesn't actually highlight selection but prints the text content of selected elements
  • Martijn van Beek's XPath Analyser -- XML input via textarea, requires Flash, open source. This is a new project: released 2010-08-24 so I'm guessing it will probably go through some updates or changes in the near future.

Browser extensions (or something)

  • XPath Checker -- Firefox extension. Shows an XPath query window instead of code highlight.
  • XPather -- Firefox extension, requires DOM inspector extension.
  • XPath tester -- Requires Microsoft Silverlight
like image 65
jasso Avatar answered Sep 28 '22 09:09

jasso