The Tree editor supports these features:
Direct editing: You can directly edit the text fields, for example, attribute values. It is possible to edit element names, attribute names and values, namespace names and values, text, and comments.
Insertion: You can insert new nodes using the Tree editor’s right mouse menu. The right mouse menu allows you to insert nodes as children before or after the selected node. If the node is an element, you can insert attributes. The submenus for Add Child, Add After, Add Before contain the node that can be legally added. If no schema or DTD is associated with the document the submenus contain New Attribute or New Element.
Deletion: To delete a node, select it and either press the Delete key or use the right mouse menu item Remove.
Drag-and-drop inside the tree and between trees.
General editing operations such as undo, redo, cut, copy, and paste.
The Tree Editor 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. It uses the standard WST icons for elements, attributes, text, and so on.
Figure 21-2 XML Editor Tree Editor
The Tree Editor supports these options on the toolbar:
Table 21-3 Tree Editor Toolbar
Button |
Description |
---|---|
![]() |
Expands all node |
![]() |
Collapses all nodes |
![]() |
Attaches a schema. For more information on using this features, see Section 21.4, Attaching Schema or DTD. |
![]() |
Launches help |