Eclipse XPath evaluation plugin

Add this URL to your Eclipse Installation to reach this Solution's Update Site.

Mars (4.5)
Luna (4.4)
Kepler (4.3)
Juno (4.2, 3.8)
Previous to Juno (<=4.1)

Learn more...

Details Group Tabs

Martin Uhlir's picture

For those who have been using previous versions of this plugin, please uninstall it and install it again either through Eclipse Marketplace or use this new update site:

The reason for this is, that the plugin (and its update site) has been moved from Google to Github and it wouldn't get updated to this latest or future releases.

Martin Uhlir's picture

I forgot to mention that starting from this version the support for Java 5 HAS BEEN DROPPED! If you need to run the Eclipse with Java 5, please don't upgrade to this nor future versions, as it might cause problems in the functionality of the plugin.

Helko Glathe's picture


I get always an exception when running the namespace loader.
Here are the details:
An internal error occurred during: "Namespace loader".
XPathFactory#newInstance() failed to create an XPathFactory for the default object model: hattp:// with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: java.util.ServiceConfigurationError: javax.xml.xpath.XPathFactory: bundleresource://853.fwk1407675409/META-INF/services/javax.xml.xpath.XPathFactory:2: Illegal configuration-file syntax

Any hints for solving the problem?

Kind regards

Martin Uhlir's picture

Hi, I have already fixed the issue with the Namespace loader. Please update the plugin to the latest version 1.4.1. Please, see the release note above, as it's necessary to uninstall the plugin first and then install it newly again.

Martin Uhlir's picture

Hi, I believe you are using Java 8, right? It seems the issues is related to this bug in the Saxon library.

As a temporary workaround you can put following line into your eclipse.ini anywhere after the "-vmargs":

I've just tested that on my system and it works well with the modified eclipse.ini file. I will try to fix the issue soon though, so the workaround won't be needed. I hope, it helps!

Eric Cornely's picture

When a file has a default namespace (xmlns="something") without prefix nothing is selectable.

Even when adding manualy the namespace value association with an empty string.

I have to define a prefix and use that prefix all arround...

Martin Uhlir's picture

Hi, thanks for reporting the issue. It has been fixed. Please, update to the latest version 1.4.1. Please, see the release note above to correctly update to the latest version.

Sergey Zolotaryov's picture

- does not gather namespace info from the file itself, would be very easy to implement; it's quite tedious to fill it in by hand, esp. taking into account that this info is forgotten when you close the xml file
- would be nice to have options to ignore namespaces, etc.

Martin Uhlir's picture

Thanks for suggestion. I've just released new version 1.3.0 which contains a new button to load all the namespaces from the current file, so no need to enter those data manually anymore.

tw bert's picture

A list of the returned XPath objects would in some cases be preferable, the raw xml is a lot of clutter if you are looking for all results of a complex query. A simple 'Number of results' in a Text widget would already be a big improvement.
In total: very nice plugin, also without the above request. Great that the namespaces work like they should (a feature that many online XPath evaluators miss or don't implement right).
Drag&Drop from the browser into Indigo also worked fine for me, chiq.

Kind regards, tw

Martin Uhlir's picture

Thanks for suggesting new enhancements. I've just implemented your request for showing "Number of results" of the executed query, so feel free to update to the newest version:-)
Can you, please, let me know more specifically what you mean by "list of returned XPath objects"?

Werner Keil's picture

Looks good, I also installed it via Drag&Drop from the browser successfully into Indigo. Why haven't you converted the Google Code Project into EclipseLabs btw., or started there in the first place?

Martin Uhlir's picture

Thanks. Yeah, I think I should have done that. Well, I'll check the possibilities of moving the project under EclipseLabs.