Having an XML document is not always enough. You sometimes need a schema to validate that the XML documents you create or receive are valid, meaning that they follow a prescribed structure. This structure enables you to automatically build and consume XML documents.
This chapter looks at one method for defining this structure-DTDs. The next chapter takes a look at one of the more popular methods-XML Schemas.