O'Reilly logo

Platinum Edition Using XHTML™, XML, and Java™ 2 by Andrew H. Watt, Mike Morgan, Jim O'Donnell, Eric Ladd

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Limitations of DTDs

DTDs were inherited from SGML (Standard Generalized Markup Language). In SGML, they were used to constrain the structure of the content of documents, and essentially the same technique was defined in the XML 1.0 Specification as the means to constrain XML documents.

If you look back at the description given earlier in this chapter of what can go in a DTD, you see that it defines, for example, that an element can contain (or not) elements or character data. That is a very useful constraint when dealing primarily with documents, which has been SGML's primary focus. However, as developers have begun to explore the potential of XML, they have found that not only is it useful for documents, but it also has enormous potential for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required