XML, XSL and DTD sources are structured in tags and data. For these sources to be usable they need to be well-formed, which means:
Each tag has a corresponding end tag
The hierarchy of the tags in an XML document conforms to the hierarchy of tags in the associated XSD or DTD document
An XML editor helps the user to enter valid input.
An XML editor colours differently the tags and the data between the tags for an easier reading.
An XML editor also colours differently a tag and its attributes.
An XML editor generates the end tag for any tag user enters. User then only needs to enter the data between the new tag and its end-tag
Several third-party XML editors can be used outside Eclipse. For further information go to the References chapter and follow the associated links.
The Notepad++ editor.
The XmlPad editor.
The behavior of the DTD, XML and XSD editors can be customized in the Preferences of your Eclipse environment under section XML.
The syntax highlighting and colours are a number of items that can be changed.
Templates can be added to speed up the creation of a new document.
![]() |