# 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 for any nodes affected will automatically occur.

The following table describes the clean up that occurs when you delete or rename certain nodes.

Action taken | Clean up
--- | ---
An element is renamed. | All references to that element will be renamed.
An external parameter entity is renamed. | Any external parameter entity references to it will be renamed.
A notation is renamed. | All references to the notation will be renamed.
An element is deleted. | All references to that element will be cleaned up or reset. The original element will be removed from the DTD file, and any references to it will be reset to the next available element. If there are no elements available, references to it will be reset to (#PCDATA).
An external parameter entity is deleted. | Any external parameter entity references to it will automatically be deleted.
A notation is deleted. | All references to the notation will be removed.

Parent topic: Deleting elements, attributes, entities, notations, and comments

(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.