15.4. The Element Menu

The Element menu contains commands for working with the current element in your document. The current element is the element that contains the insertion cursor.

15.4.1. Check element

The Check Element command performs a quick check of the current element and displays a message about the current status of the element.

In contrast to the Document->Validate command, the Check Element command checks only the current element and returns a single error description for the first problem found.

15.4.2. Element Overview

The Element Overview command displays a list of all elements in your DTD (or of all defined elements if you are editing a well-formed XML document) and lets you access additional information about each element.

The Element Overview command displays the element manager if it is currently hidden and activates the All tab of the element manager. If the insertion cursor is currently placed within the document (i.e. not before or after the document element of your document), the element containing the insertion cursor is selected in the list of elements in the All tab of the element manager.

You can access additional information about the selected element by using the command buttons at the bottom of the element manager. Please refer to The element manager for information about the element manager.

15.4.3. Insert Element

The Insert Element command displays a list of all elements that can be inserted. If you have selected a region of your document, this list will contain all elements that could enclose the selected region when inserted. If you have not selected a part of your document, the list will contain all elements that can be inserted at the current location of the insertion cursor.

The Insert Element command displays the element manager if it is currently hidden and activates the Insert tab of the element manager. The Insert tab of the element manager shows the list of the insertable elements.

To insert an element, you select the appropriate element in this list and click on the Insert button in the element manager.

You can access additional information about the selected element by using the command buttons at the bottom of the element manager. Please refer to The element manager for information about the element manager.

15.4.4. Rename Element

The Rename Element command allows you to rename the element containing the insertion cursor. It displays a list of all elements to which the current element can be renamed.

The Rename Element command displays the element manager if it is currently hidden and activates the Rename tab of the element manager. The Rename tab of the element manager shows the list of element names to which the current element can be renamed.

To rename an element, you select the appropriate element in this list and click on the Rename button in the element manager.

You can access additional information about the selected element by using the command buttons at the bottom of the element manager. Please refer to The element manager for information about the element manager.

It is not possible to rename the document element of SGML and valid XML documents. The document element of wellformed XML documents can be renamed.

15.4.5. Split Element

The Split Element command splits the element containing the insertion cursor at the location of the insertion cursor. It creates a new element of the same type as the current element and moves the content of the current element that occurs to the right of the insertion cursor into the new element.

It is not possible to split the document element.

15.4.6. Remove Element

The Remove Element command removes the element containing the insertion cursor. It leaves the content of the current element in place and removes only the start and end tags of the current element. The content of the current element becomes part of the parent element of the element that was removed.

It is not possible to remove the document element.

15.4.7. Delete Element

The Delete Element command deletes the element containing the insertion cursor and the complete content of this element.

It is not possible to delete the document element.

15.4.8. Edit Attributes

The Edit Attributes command allows you to edit the attributes of the element containing the insertion cursor. It displays a list of all attributes and their values for the current element.

The Edit Attributes command displays the element manager if it is currently hidden and activates the Attributes tab of the element manager. The Attributes tab of the element manager shows the list of all attributes and their values for the current element.

To edit the value of an attributes, you click on the appropriate attribute in this list.

You can access additional information about the selected element and its attributes by using the command buttons at the bottom of the element manager. Please refer to The element manager for information about the element manager.

The Remove linebreaks command reformats the current element by replacing all linebreaks in the current element by blank characters.

15.4.9. Style Sheet

The Style Sheet command displays the style sheet dialog for the current element. The style sheet dialog allows you to edit the style for displaying the current element.

Please refer to Style Sheets for details on epcEdit's style sheet mechanism.