You can edit DTDs in the following ways:
Editing in the Outline view
The Outline view will show you all the items in your DTD as you add them. In this view, you can both create and delete DTD nodes.
The following instructions were written for the Resource perspective, but they will also work in many other perspectives. To edit a DTD in the Outline view, follow these steps:
The DTD editor has a built-in mechanism to handle referential integrity issues. When you delete or edit certain components, clean up will automatically occur. Refer to the related reference section for more information.
Editing in the Source view
You can edit the source code for your DTD in the Source view manually.
The following instructions were written for the Resource perspective, but they will also work in many other perspectives. To edit a DTD in the Source view, follow these steps:
Sorting nodes in the Outline view
By default, DTD nodes appear in the Outline view in the order you added them to the DTD.
If
you want to sort the DTD nodes alphabetically, click the Sort
items alphabetically button .
You
can also group the DTD nodes into logical groups - notations, entities, elements,
and other. Click the Group items logically button to sort the DTD nodes into logical groups.
The following links contain information on how you can edit DTD files: