ABSTRACT

Document Type Definitions (DTDs) are schemas that describe the structure and, to a limited extent, the content of XML and SGML documents. At its inception, the XML standard inherited the DTD from SGML as its only schema language. Many alternative schema languages have subsequently been developed for XML and are widely used in data-centric applications. But the DTD is still alive and actively used to define some narrative-based document types, particularly journal articles. This entry describes the basic syntax of the DTD and compares it to its two main rivals: W3C XML Schema and RELAX NG.