Editing an XML Document
See Also
The IDE's Source Editor provides the following features for editing XML documents:
- Syntax coloring
- Indentation and reformatting. The IDE indents lines as you type.
You can format selected lines or the entire file by pressing Alt-Shift-F.
- Code completion. Basic code completion, such as auto-completion of
element end tags, is available for all XML documents. If your document is
defined by a DTD and the IDE can access the DTD, the Source Editor also offers
code completion for all supported elements, attributes, and entities. As you
type, a combo box displays all matching elements in the DTD. Press Enter to
enter only the element name, or press Shift-Enter to enter a start tag and
end tag for the element.
- Navigator window. The Navigator window (Ctrl-7) displays the structure
of your XML documents. The Navigator window displays the name, attributes,
and text content of each element. You can double-click any element node to
jump to its location in the Source Editor.
- Code folding. You can expand and collapse any element in the Source
Editor.
To open an XML file in the Source Editor:
- Double-click the XML file's node.
- See Also
- Creating an XML Document
- Checking an XML Document for Well-Formedness
- Validating an XML Document
Legal Notices