This plugin provides a new view in an eclipse perspective and enables the user to evaluate XPath expressions against the active text editor containing XML.
Features:
- XPath 2.0 expression validation
- XML validation (well formed)
- Executing XPath 2.0 expressions against XML
- Namespace support in XPath queries
- Pretty print
Supported Eclipse versions:
- 2023-03,06,09 / 4.27, 4.28, 4.29
- 2022-03,06,09,12 / 4.23, 4.24, 4.25, 4.26
- 2021-03,06,09,12 / 4.19, 4.20, 4.21, 4.22
- 2020-03,06,09,12 / 4.15, 4.16, 4.17, 4.18
- 2019-03,06,09,12 / 4.11, 4.12, 4.13, 4.14
- 2018-09,12 / 4.9+, 4.10+
- Photon / 4.8+
- Oxygen / 4.7+
- Neon / 4.6+
- Mars / 4.5+
- Luna / 4.4+
- Kepler / 4.3+
- Juno / 4.2+
- Indigo / 3.7+
- Helios / 3.6+
- Galileo / 3.5+
- Ganymede / 3.4+
Java version:
- 1.6 and above (from plugin version 1.4.1 onwards)
- 1.5 (up to plugin version 1.3.0)
Automatic installation - Drag & Drop (Indigo, Juno, Kepler, Luna, Mars, Neon, Oxygen, Photon, 2018+, 2019+, 2020+)
- Drag and drop following icon
into a running Eclipse Indigo/Juno/Kepler/Luna/Mars/Neon/Oxygen/Photon workspace
- Click "Next"
- Accept license
- Click "Finish"
- You might be warned that you are installing unsigned content. If you are OK with it, click "OK" to proceed.
- At the end of installation process you will be asked to restart Eclipse, click on "Restart now"
Automatic installation from within Eclipse Marketplace (Helios, Indigo, Juno, Kepler, Luna, Mars, Neon, Oxygen, Photon, 2018+, 2019+, 2020+)
- Go to Help -> Eclipse Marketplace
- Type into the search box "xpath", select "Tools" in the market combo box and/or "XML" in the categories combo box to narrow down the results and click "Go"
- One of the results should appear "Eclipse XPath evaluation plugin", click on "Install" button next to it
- Click "Next"
- Accept license
- Click "Finish"
- You might be warned that you are installing unsigned content. If you are OK with it, click "OK" to proceed.
- At the end of installation process you will be asked to restart Eclipse, click on "Restart now"
Manual installation from within Eclipse (Galileo, Helios, Indigo, Juno, Kepler, Luna, Mars, Neon, Oxygen, Photon, 2018+, 2019+, 2020+)
- Go to Help -> Install New Software
- Add repository ("Add.." button)
- Fill in Name as "XPath" and Location as "https://raw.githubusercontent.com/stoupa91/eclipse-xpath-evaluation-plugin/master/eclipse-xpath-evaluation-plugin-update-site/"
- Select the loaded plug-in in "Uncategorized" section
- Click "Next", "Next"
- Accept license
- Click "Finish"
- You might be warned that you are installing unsigned content. If you are OK with it, click "OK" to proceed.
- At the end of installation process you will be asked to restart Eclipse, click on "Restart now"
Manual installation from within Eclipse (Ganymede)
- Go to Help -> Software Updates
- Click "Add Site.."
- Fill in Location as "https://raw.githubusercontent.com/stoupa91/eclipse-xpath-evaluation-plugin/master/eclipse-xpath-evaluation-plugin-update-site/"
- Select the loaded plug-in in "Uncategorized" section
- Click "Install"
- Accept license
- Click "Finish"
- You might be warned that you are installing unsigned content. If you are OK with it, click "OK" to proceed.
- At the end of installation process you will be asked to restart Eclipse, click on "Restart now"
Manual installation (Ganymede, Galileo, Helios)
- Download provided zip file with the most recent version of the plug-in implementation from "https://github.com/stoupa91/eclipse-xpath-evaluation-plugin/tree/master/eclipse-xpath-evaluation-plugin-update-site/archive"
- Extract the zip file into the home directory of your eclipse installation
- Launch Eclipse IDE
If you experience any issue related to either the plugin's GUI or your eclipse installation in general like tooltips displayed as black bubbles or any distortion of the icons you may want to put following two lines into your eclipse.ini file and restart your eclipse:
--launcher.GTK_version 2
Open XPath view (Indigo, Juno, Kepler, Luna, Mars, Neon, Oxygen, Photon)
- Go to Window -> Show View -> Other -> XML -> XPath, whereas new view, for executing the XPath expressions, will be shown
Open XPath view (Ganymede, Galileo, Helios)
- Go to Window -> Show View -> Other -> Other -> XPath, whereas new view, for executing the XPath expressions, will be shown
XPath view usage
- Open an XML file in (any) text editor within your eclipse IDE
- Provide XPath query you want to execute in the combo box
- Optionally, you can define several namespaces used in your XPath query in the table on the right side of the view by providing namespace prefix and its URI or click on 'Load all namespaces from current file' to automatically load all the namespaces
- Execute the query either by pressing 'Enter' (while the cursor is still in the XPath query input box) or by clicking on 'Run query' button
- The result will be shown under the query combo box
eclipse-xpath-evaluation-plugin-1.3.0.zip