delete elements, attributes, entities, notations, and comments
In the DTD editor, you can create and edit elements, attributes, entities, notations and comments. You can also delete any of these after you have created them.
The following instructions were written for the Resource perspective, but they will also work in many other perspectives.
To delete an element, attribute, entity, notation or comment:
- Open the DTD in the DTD editor.
- In the Outline view, click the element, attribute, entity, notation or commentyou want to delete. If you want to delete more than one item, hold down theCtrl key while you select items.
- Right-click the item (or one of the items if you have selected more than one), and, from its pop-up menu, click Delete.
You can "undo" the deletion of an item. To do so, right-click any element, attribute, entity, notation or comment and click Undo Delete. You must do this before you close the editor, otherwise, the items will no longer exist on the system and you will have to recreate them if you want them again.
The DTD editor has a built-in mechanism to handle referential integrity issues. When you delete or rename certain nodes, clean up will automatically occur. Refer to the related information below for more information.
Referential integrity in the DTD editor
The DTD editor has a built-in mechanism to handle referential integrity issues. When you delete or rename certain nodes, clean up will automatically occur.
Parent topic
Editing DTDs
Related tasks
Creating attributes and attribute lists
Creating a comment
Creating elements
Creating entities
Creating notations