Elements can be renamed to other elements if this allowed by the DTD. If an element is renamed, the type of the element in question is changed, but the content of the element is not affected. Any attribute values of the element are retained if they are compatible with the new element type; attribute values that are not compatible with the new element type are discarded.
Elements are renamed by using the Rename tab in the element manager. This tab displays the names of all elements to which the current element (i.e. the element containing the insertion cursor) can be renamed.
Follow these steps to rename an element:
Place the insertion cursor inside the element that you want to rename.
Click on the title of the Rename tab in the element manager to bring this tab to the front.
The Rename tab of the element manager displays the list of available element names. If this list is empty, you cannot rename the current element.
Select the new element name from the list shown by the element manager and press the button.
The current element will be renamed.
In order to be able to rename an element, the definition of the parent element must allow the new element type to occur at the position of the current element and the definition of the new element must be compatible with the content of the current element.
Note: You cannot rename the document element of an SGML or valid XML document because the name of the top-level element is defined by the DOCTYPE statement in the document prolog.