The XML editor is now built on the Eclipse Web Standard Tools (WST) project architecture. As a result, the UI has changed significantly and several additional and/or improved features are available.
In general, this change allows us to provide a more feature rich and better tested XML editor since we can leverage the work of the WST project and don't have to re-implement everything ourselves.
The Source Editor supports the following features:
<root><a><b/></a><a></a></root>
once you type the
second <a>
, the editor suggests that you add b as a child of the a element.
The Tree View is a table-tree editor that displays the XML nodes where the value of each node is displayed in a table-cell next to the tree node.
The Tree Editor supports direct editing of attribute values, comments, text nodes, CDATA, etc. as well as insertion and deletion using the right mouse menu.
The new XML wizard allow you to create either an empty XML file or a file containing skeleton data based on a DTD or XML Schema. You can either choose a DTD or XML Schema from the XML Catalog, use an existing DTD or XML Schema (in the workspace), or import DTDs or XML Schemas into your workspace and use one of the imported files to create the skeleton data.
Several new preference pages are available for the XML editor.
The XML Catalog Preferences allow you to manage the WST XML Catalog implementation. You can add, edit, or delete user-specified catalogs. You cannot use this preference to manage the plug-in specified entries since these cannot be changed.
You can set the following general XML File preferences:
You can set the following XML Source preferences:
The XML Styles preferences allow you to specify the syntax highlighting (foreground and background color) and whether the text should be bold for individual XML constructs.
Use the XML Templates preference page to define XML templates. The templates are used in the code completion in the XML Source Editor.