Chapter 4. XML Document Type Definitions

Document Type Definitions (DTDs) are important in data exchange. Parties exchanging data must agree on a format, and a DTD allows the specification of that format.

DTDs are used to specify the allowed syntax of an XML application [XML], including the values of entities and special properties of attributes for example, that an attribute is a unique element identifier (ID). Familiarity with DTDs is useful because they are a fundamental part of XML parsing. In this book, we use DTDs to specify the syntax for XML signatures and some other XML security structures.

Recently, the W3C devised a new method of syntax specification, called XML Schema [Schema], which is described in detail in Chapter 5. Schemas are used in the XML Security standards and this book as the more authoritative syntax specification. Although schemas provide a more precise description and are better suited to handling XML namespaces [Names], they do not eliminate the need for DTDs. Also, as schemas are such a recent addition to the XML arsenal, fewer tools are available for handling schemas than for working with DTDs.


When the DTD of some signed XML specifies default attribute values, the expanded value of entities, and so on, it is usually necessary to also sign the DTD, as discussed in Chapters 9 and 10 on canonicalization and signatures. Otherwise, an adversary could change the DTD and, in effect, change the signed XML meaning without breaking the signature.

If you are already familiar with DTDs, you can skip the rest of this chapter.

Secure XML(c) The New Syntax for Signatures and Encryption
Secure XML: The New Syntax for Signatures and Encryption
ISBN: 0201756056
EAN: 2147483647
Year: 2005
Pages: 186 © 2008-2017.
If you may any questions please contact us: