How to setup eclipse as XML editor

Eclipse is an open source IDE (integrated development environment) with really good XML support.

Getting eclipse

Get Eclipse Helios (Eclipse IDE for C/C++ Developers) from http://www.eclipse.org/downloads/. The XML editor and the FORTRAN editor and various other features can be installed over the marketplace. You will find the marketplace in the help menu of the eclipse application. We can recommend the following plugins from the Yoxos marked place:

  • Eclipse XML Editors and Tools
  • Fortran Development Tools (Photran)
  • Pydev for Eclipse
  • XSD Edit
  • Eclipse EGit
  • EPIC (Eclipse Perl Integration)

Using eclipse

With this plug ins following features should work. That is give if the schema is associated with the input.xml by giving the path to the schema in the input element:

<?xml version="1.0" encoding="UTF-8" ?>
<input xsi:noNamespaceSchemaLocation="../../../xml/excitinginput.xsd" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > 
 
</input>

Assisted Input

An XML editor such as the eclipse XML plugins can use the schema for suggesting possible inputs in the current context.

assistedInput.png

Live Help

The Schema contains also documentation about the parameters and elements. This documentation can also be displayed in the XML editor.

LiveHelp.png
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License