java.net member

Rechercher dans ce site

>> 15 March 2011

This plug-in is designed for Eclipse (3.6 or later) and has three parts:

Cheat sheets:
These Cheat sheets describe Parsing XML in Java, with description of using DOM parser, validating documents, using XPath, character references, etc. An interactive example of using XPath expressions is included.

Visual XPath:
Is a XPath expressions visualizer. You select any XML file from your hard disk, or you can use the included example. When you enter an expression and press "evaluate", the corresponding parts of the XML document are highlighted.

XML templates
Some useful Java editor templates for working with XML documents.

How to install

Download here "xml_parsing_in_java_kit.zip" file and unzip it. You will get a folder called "plugins" with a .jar file inside it.

Shutdown Eclipse

Copy the .jar file "com.java_javafx.ka.templates.java.xml.templates_and_cheatsheets_2.0.0.beta_1.jar", from plugins folder to the folder "dropins" under your Eclipse installation.

XPath interactive example
There are predefined examples using XPath expression. To see the result of an expression, select this expression in the list. If the expression is applicable you'll get some parts highlighted in the example. If the result of the expression is Double or Boolean, this result is display after the example.

Using Visual XPath
To open the tool -> click on its icon in the main tool bar in Eclipse.

Using this tool is straight forward. Enter any XPath expression in the text field and press evaluate button. If the expression is applicable, corresponding parts are highlighted. You can select any other XML file to be used with XPath expressions by clicking "select file" button, and select any other XML file of your choice.

Using Java templates
In any Java editor -> enter xml -> followed by CTRL+SPACE and select any of the provided templates