Use code insight

The editor will scan the DTD or XML Schema file assiciated with the currently edited XML document and will initialize the CodeInsight assistant. By pressing the "<" key, it is displayed a window containing all the elements that can be inserted at that point in the document. You will notice that the window appears also when adding new attributes or when an attribute has default values you can choose from. In the first case the CodeInsight window is triggered by pressing the SPACE key, in the later by pressing ' or ".

CodeInsight is also available when editing XSL documents, or XML Schemas.

You may benefit from the CodeInsight mechanism even for documents that do not have a DTD or XML Schema file specified . You will have to press the "Learn Document Structure" button .

To save the learned structure as a DTD, you may us the button "Save Document Structure" .

The code insight features can be customized from the "Options/Code-Insight" menu option.