Skip to main content
  • Log in
  • Manage Cookies
Eclipse Plugins, Bundles and Products - Eclipse Marketplace
  • My Marketplace
  • Add Content
  • More
      • Community

      • Marketplace
      • Events
      • Planet Eclipse
      • Newsletter
      • Videos
      • Blogs
      • Participate

      • Report a Bug
      • Forums
      • Mailing Lists
      • Wiki
      • IRC
      • Research
      • Eclipse IDE

      • Download
      • Learn More
      • Documentation
      • Getting Started / Support
      • How to Contribute
      • IDE and Tools
      • Newcomer Forum
    • Search

  1. Home
  2. Marketplace
  3. Tools
  4. Eclipse XPath evaluation plugin

Please be aware that some listings have been temporarily delisted from our marketplace in order to improve the security of the platform. We apologize for any inconvenience this may caused.

For more information on this matter, please visit #1.

If you are a listing owner and would like to have your listing(s) reinstated, please open a ticket at https://gitlab.eclipse.org/eclipsefdn/it/websites/marketplace.eclipse.org/-/issues.

Thank you for your understanding and cooperation.

Eclipse XPath evaluation plugin

Eclipse XPath evaluation plugin
50
24
Install

Drag to Install!

Drag to your running Eclipse* workspace.
*Requires Eclipse Marketplace Client

Add this URL to your Eclipse Installation to reach this solution's update site.

2019-03 (4.11)
2018-12 (4.10)
2018-09 (4.9)
Photon (4.8)
Oxygen (4.7)
Neon (4.6)
Mars (4.5)
Luna (4.4)
Kepler (4.3)
Juno (4.2, 3.8)
Previous to Juno (<=4.1)
2019-06 (4.12)
2019-09 (4.13)
2019-12 (4.14)
2020-03 (4.15)
2020-06 (4.16)
2020-09 (4.17)
2020-12 (4.18)
2021-03 (4.19)

https://raw.githubusercontent.com/stoupa91/eclipse-xpath-evaluation-plugin/master/eclipse-xpath-evaluation-plugin-update-site/

Learn more...

Screenshot 0

Details Group Tabs

Details

Enables evaluation of XPath expressions against the active text editor containing XML.

Categories:
  • General Purpose Tools,
  • IDE,
  • Tools,
  • Web, XML, Java EE and OSGi Enterprise Development,
  • XML
Tags:
  • xml,
  • xpath,
  • Namespaces
Additional Details
Eclipse Versions: 
2019-03 (4.11), 2018-12 (4.10), 2018-09 (4.9), Photon (4.8), Oxygen (4.7), Neon (4.6), Mars (4.5), Luna (4.4), Kepler (4.3), Juno (4.2, 3.8), Previous to Juno (<=4.1), 2019-06 (4.12), 2019-09 (4.13), 2019-12 (4.14), 2020-03 (4.15), 2020-06 (4.16), 2020-09 (4.17), 2020-12 (4.18), 2021-03 (4.19)
Platform Support: 
Windows, Mac, Linux/GTK
Organization Name: 
Martin Uhlir
Development Status: 
Production/Stable
Date Created: 
Tue, 2011-11-08 02:26
License: 
BSD
Date Updated: 
Fri, 2021-01-15 10:12
Submitted by: 
Martin Uhlir
Screenshots
Screenshot 0
Metrics
DateRankingInstallsClickthroughs
March 2023205/685131 (0.04%)13
February 2023220/668104 (0.03%)21
January 2023181/677156 (0.05%)16
December 2022210/805125 (0.04%)15
November 2022232/808112 (0.03%)19
October 2022261/81185 (0.02%)27
September 2022209/812137 (0.03%)25
August 2022283/80862 (0.02%)27
July 2022278/81672 (0.02%)38
June 2022276/81077 (0.02%)34
May 2022214/810142 (0.03%)21
April 2022247/817110 (0.03%)15
View Data for all Listings
Errors

Unsuccessful Installs in the last 7 Days: 0

Download last 500 errors (CSV)
External Install Button

Marketplace Drag to Install button

By adding the following code below to your website you will be able to add an install button for Eclipse XPath evaluation plugin.

HTML Code:


Markdown Syntax:



Output: Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client
Wednesday, March 29, 2023 - 12:24

Reviews Sign in to post reviews

trenshaw's picture

Did not work as well as expected.

Submitted by Trent Renshaw on Thu, 2022-10-06 20:49

The plugin works well with well-formed XML but fell in a heap with HTML and XHTML documents. Would be great if this plugin could be more general purpose and able to ignore small semantic issues with less well-formed markup.

abuchner's picture

unknown Host

Submitted by Andreas Buchner on Thu, 2018-10-25 07:34

Hi,

I tried to install this tool, but I get an error like this:

Unknown Host: http s:// r a w. gith ubus erco ntent.com/s toupa 91/ eclipse-xpa th-evalu ation-p lugin/ma ter/ecli pse-xpath -eval uati on-pl ugin-u pdate -site/co nten t.x ml

r aw.g ithubuse rcon tent.c om

Because Eclipse "Sorry, we do not allow comments to contain external links [URL]. Feel free to edit your post."

I added some" " in the link.

does anyone know the solution to this?

Thanks a lot

Andreas

muhlir's picture

Re: unknown Host

Submitted by Martin Uhlir on Thu, 2018-11-01 14:16

Did you make it work? I've just tried the installation and strangely faced the same problem as you. So I canceled the instalation, re-tried it again and interestingly this time it went through without any problem. Probably just some network issue (DNS issue?). It doesn't seem to be the plugin's problem.

abuchner's picture

Re: Re: unknown Host

Submitted by Andreas Buchner on Wed, 2018-11-07 05:11

Hey, I have tried it again, but nothing changed?!

 

muhlir's picture

Re: Re: Re: unknown Host

Submitted by Martin Uhlir on Tue, 2018-11-13 11:36

I've tried it again. This time on different computer and different network and I managed to install it successfully without any problems. Can you make a new fresh eclipse installation and try to install the plugin through the Eclipse Marketplace? Just to see if there is any issue with your current eclipse installation. I'm running out of other ideas..

abuchner's picture

Re: Re: Re: Re: unknown Host

Submitted by Andreas Buchner on Fri, 2018-11-16 04:00

I tried, still no succsess, but I found I cannot access a different project as well...

Seems to be some issue on my side :/

Pardon me!

jkujawa's picture

Good enough to try out simple XPath

Submitted by Jean-Jacques Kujawa on Tue, 2017-06-13 15:19

I'm learning XPath and looked for an interpreter and this one gave me a first contact with it but apparently it has issues and interpreting XPath functions. Retyping the queries from the video I cannot get a result and in the video it appears well.

Now I've looked at the syntax of the concat function and I don't understand what's going on. Either it states that I can't use a single argument, Either it states that I am restricted on the first one, either it returns only the number of result but does not display the data.

So it seems it is buggy.
You can reproduce what I'm saying by downloading this XML file and trying that query for instance.
Look for Institute for Informatics Georg-August-Universität Göttingen mondial database. They provide an XML file

and the queries:

/mondial/country[population < 10000]/name/concat('Population: ', name)  <- returns no value
concat(/mondial/country[population < 10000]/name,' test ') <- Returns msg "A sequence of more than 1 item is not allowed as the first argument of concat()"
a working query from the video was

/mondial/country[population > 300000000]/name/concat(name,' -> ', population) <- Just returns the number of elements in the resultset but do not display the data.

muhlir's picture

Re: Good enough to try out simple XPath

Submitted by Martin Uhlir on Thu, 2017-06-15 05:14

Hi, thanks for reporting the issue. I've just found there is really a small bug regarding this. For now when evaluating the XPath query, please make sure the "Pretty Print" is turned off! Therefore uncheck the checkbox on the very right side next to the "Run Query" and "Load Namespaces" buttons. This is causing not showing the results, I will fix this soon.

Nevertheless, beside this small bug, there is another problem with your XPath query. I believe you were talking about this XML file https://www.dbis.informatik.uni-goettingen.de/Mondial/mondial.xml

Lets have a look at your query: /mondial/country[population < 10000]/name/concat('Population: ', name)

1) Here you call the concat function at this level /mondial/country[population < 10000]/name and passing "name" as the second parameter of the concat function doesn't make sence at all. You may want to change the second parameter to "text()" and you'll get the country name instead (in fact that's the textual content of the "name" element.
2) I believe you want get the population of those selected countries. The problem in that XML file is that there are multiple population elements in each of the country elements. And you can only pass an atomic value to the concat function. Therefore you have to select only one "population" element (selecting it either by year attribute) or just the last one being listed in there.
You can try this query and start digging more from it. It gives you the country name and it's population (it selects only the last population element of the coutry element). /mondial/country[population > 300000000]/name/concat('Population: ', ../population[last()], ', Country name: ', text(), ' | ')

I hope, this helps.

muhlir's picture

Re: Re: Good enough to try out simple XPath

Submitted by Martin Uhlir on Tue, 2017-12-26 11:30

This issue has been fixed in 1.4.5. Feel free to upgrade to the latest version.

fted's picture

installation errors - any pointers?

Submitted by Fred Ted on Sun, 2015-12-06 13:05

using Eclipse Version: 4.4.2
(note: spaces in URL because URL was rejected as spam)
Bad HTTP Request: https : // raw.github.com/stoupa91/eclipse-xpath-evaluation-plugin/master/eclipse-xpath-evaluation-plugin-update-site/#sthash.U3Qmiawq.dpuf/features/eu.musoft.eclipse.xpath.evaluation.plugin_1.4.4.201511010953.jar

I checked this URL in a browser and it is in fact bad - returns 400 Bad Request

muhlir's picture

Re: fred ted's picture installation errors - any pointers?

Submitted by Martin Uhlir on Mon, 2015-12-07 21:52

Hi, can you please go in your Eclipse to the Help->Install New Software and click on Available Software Sites and check which URL you have there for the installation of this plugin? In case you have more URLs for this plugin, please remove all of them. Then either install the plugin through the Eclipse marketplace again or add new site by yourself which will point to this URL
https://raw.githubusercontent.com/stoupa91/eclipse-xpath-evaluation-plugin/master/eclipse-xpath-evaluation-plugin-update-site/
I don't know why the other URL (reported by you) doesn't work anymore, but I've just tried this new URL and I was able to install the plugin successfully. Let me know if you will be able to resolve the issue with this.

muhlir's picture

Version 1.4.1 has been released!

Submitted by Martin Uhlir on Sun, 2015-10-25 02:46

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:

https://raw.github.com/stoupa91/eclipse-xpath-evaluation-plugin/master/eclipse-xpath-evaluation-plugin-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.

muhlir's picture

Re: Version 1.4.1 has been released!

Submitted by Martin Uhlir on Sun, 2015-10-25 02:59

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.

hglathe's picture

Problem with namespace loader

Submitted by Helko Glathe on Tue, 2015-10-20 05:04

Hi,

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://java.sun.com/jaxp/xpath/dom 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
Helko

muhlir's picture

Re: Problem with namespace loader

Submitted by Martin Uhlir on Sun, 2015-10-25 02:50

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.

muhlir's picture

Re: Problem with namespace loader

Submitted by Martin Uhlir on Sat, 2015-10-24 03:24

Hi, I believe you are using Java 8, right? It seems the issues is related to this bug https://saxonica.plan.io/issues/1944 in the Saxon library.

As a temporary workaround you can put following line into your eclipse.ini anywhere after the "-vmargs":
-Djavax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom=net.sf.saxon.xpath.XPathFactoryImpl

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!

ecornely's picture

Default namespace not supporter

Submitted by Eric Cornely on Thu, 2015-10-01 08:48

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...

muhlir's picture

Re: Default namespace not supported

Submitted by Martin Uhlir on Sun, 2015-10-25 02:52

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.

szolotaryov's picture

too simple

Submitted by Sergey Zolotaryov on Fri, 2014-02-21 07:21

- 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.

muhlir's picture

Re: too simple

Submitted by Martin Uhlir on Fri, 2014-06-13 13:45

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.

tbert21d's picture

Results: not only raw xml would be nice

Submitted by Tw Bert on Thu, 2013-08-15 17:23

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

muhlir's picture

Re: Results: not only raw xml would be nice

Submitted by Martin Uhlir on Thu, 2013-08-22 05:28

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"?

wkeil's picture

Nice

Submitted by Werner Keil on Fri, 2011-11-18 04:44

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?

muhlir's picture

Re: Nice

Submitted by Martin Uhlir on Mon, 2011-11-21 01:24

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

Markets

  • Eclipse Project (4)
  • Tools (1342)
    • Application Development Frameworks (171)
    • Application Management (32)
    • Application Server (31)
    • BIRT (10)
    • Build and Deploy (104)
    • Business Intelligence, Reporting and Charting (14)
    • Code Management (117)
    • Collaboration (37)
    • Database (44)
    • Database Development (34)
    • Database Persistence (17)
    • Documentation (60)
    • Eclipse Kura (122)
    • Eclipse SmartHome (46)
    • EclipseRT Target Platform Components (10)
    • Editor (339)
    • Entertainment (14)
    • General Purpose Tools (124)
    • Graphics (34)
    • IDE (344)
    • Internet of Things (IoT) (35)
    • J2EE Development Platform (44)
    • J2ME (5)
    • Languages (155)
    • Linux Tools (19)
    • Logging (22)
    • Mobile and Device Development (49)
    • Modeling (90)
    • Modeling Tools (146)
    • Mylyn Connectors (20)
    • Network (14)
    • Other (74)
    • Process (18)
    • Profiling (22)
    • Programming Languages (100)
    • Reporting (32)
    • Rich Client Applications (39)
    • Science (4)
    • SCM (20)
    • Search (42)
    • SOA Development (15)
    • Source Code Analyzer (99)
    • Systems Development (59)
    • Team Development (54)
    • Testing (90)
    • Tools (568)
    • UI (97)
    • UML (40)
    • Web (90)
    • Web Services (31)
    • Web, XML, Java EE and OSGi Enterprise Development (32)
    • XML (29)
  • IoT (172)
    • Eclipse Kura (122)
    • Eclipse SmartHome (46)
  • RCP Applications (79)
  • Training & Consulting (53)
  • Long Term Support (11)

Search

Advanced Search

More like this

  • Eclipse Enterprise Java and Web Developer Tools
  • Eclipse Web Developer Tools
  • Eclipse PDE (Plug-in Development Environment)
  • Vaadin Plugin for Eclipse
  • NomDT

Favorited by

Eclipse Foundation

  • About Us
  • Contact Us
  • Sponsor
  • Members
  • Governance
  • Code of Conduct
  • Logo and Artwork
  • Board of Directors
  • Careers

Legal

  • Publishing Guidelines
  • Privacy Policy
  • Terms of Use
  • Copyright Agent
  • Eclipse Public License
  • Legal Resources

Useful Links

  • Welcome to Marketplace
  • Report a Bug
  • Documentation
  • How to Contribute
  • Mailing Lists
  • Forums
  • Marketplace

Other

  • IDE and Tools
  • Projects
  • Working Groups
  • Research@Eclipse
  • Report a Vulnerability
  • Service Status

Copyright © Eclipse Foundation. All Rights Reserved.

Back to the top