Describing the XML Document: The DTD

As mentioned previously, the XML document is both self-describing and self-validating. The degree to which the document provides these features can vary, depending partly on whether or not the document identifies a corresponding DTD. The DTD describes the type, order, frequency, and relationship of elements in an XML document. In the current release of the XML-DTD specification, data types are limited to variations of character data.

An XML document is composed of elements in a specific order or structure, a hierarchy. These elements may optionally contain attributes that further describe the elements. The element may also contain corresponding values. We would therefore expect the DTD to allow some or all ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.