Document Type Definition (DTD) Files

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
DTD object node icon Document type declaration (DTD) object.
  • Name
  • System ID
  • Public ID
Element declaration category.
  • None
Element declaration.
  • Name
  • Content
Attribute declaration category.
  • None
Attribute declaration.
  • Element name
  • Attribute list
Attribute definition.
  • Element name
  • Name
  • Type
  • Enumerated
  • Default Type
  • Default
Entity declaration.
  • None
DTD entity node icon Entity definition.
  • Name
  • Type
  • Text
Notation declaration category.
  • None
Notation declaration.
  • Name
  • ID
Parameter entity declaration.
  • Name
  • Type
  • Public ID
  • System ID
See also:
The XML Module
Creating a DTD File
The Text Editor
The Tree Editor

Legal Notices