Summary

The XML data schema language was created because of weaknesses in the DTD model. In many ways, it's cleaner than the DTD language and provides greater expressive powers. There's the added advantage that schemas are written in XML, providing a consistency of expression not found when DTDs are used.

To demonstrate how XML schemas are written, this hour revisited data files that were used to demonstrate the construction of DTDs, and you rewrote them into the schema equivalents.

Get Sams Teach Yourself XML in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.