>There is a little known feature in eclipse, that can make editing XML files much easier if they have a grammar to go with them. In particular if there is a DTD or XML Schema. The WTP source editing project provides a basic implementation of the OASIS XML Catalog specification. There is work going on to implement full support for XML Catalog 1.1, but the current implementation is pretty useful as it is.
According to Wikipedia, “The XML catalog is a document describing a mapping between external entity references and locally-cached equivalents.”. It itself is an xml file format. The advantage of using XML Catalogs with in the WTP XML Editor is that you can define a particular namespace and have it resolve the appropriate grammar. This then can give you content assistance and validation of the document you are editing.
There is an eclipse wikipedia entry that provides more information. I use the XML Catalog in WTP to provide content assistance for XInclude, XSL-FO, DocBook, DITA, and other xml formats. If it has a grammar (DTD or Schema) you can get some good content assistance help for the various elements and attributes that the grammar has. It is also useful for working with various industry B2B standards as well.
For adopters, eclipse does provide an extension point so that you can add your own grammars automatically to the existing catalog. Thus allowing the XML editor to already know about your grammars and providing the same benefit but more control as allowing the user to manually add it themselves.