A Document Type Definition (DTD) describes the tags that can be used in an XML file and indicates the valid arrangement of those tags. It can exist as a prologue to an XML file (internal DTD), or as a separate file that the XML file references (external DTD).
Like all XML files, you can view external DTD files in the Source Editor in text editor mode by right-clicking its node and choosing Edit, or in tree editor mode by right-clicking its node and choosing Open. However, the tree editor mode only displays DTD files in read-only form. You must open a DTD file in text editor mode to edit it.
The contextual menu for external DTD nodes contains the following commands:
DTD objects are represented by the following nodes in the Explorer:
Icon | Description | Properties |
---|---|---|
![]() |
Document type declaration (DTD) object. |
|
![]() |
Element declaration category. |
|
![]() |
Element declaration. |
|
![]() |
Attribute declaration category. |
|
![]() |
Attribute declaration. |
|
![]() |
Attribute definition. |
|
![]() |
Entity declaration. |
|
![]() |
Entity definition. |
|
![]() |
Notation declaration category. |
|
![]() |
Notation declaration. |
|
![]() |
Parameter entity declaration. |
|
See also: | |
---|---|
The XML Module Creating a DTD File The Text Editor The Tree Editor |