Abstract:
An XML document is considered 'well written' when its syntax is correct, and 'valid' when it respects a document model. While a document must be 'well written,' it does not necessarily have to be 'valid.' However, as XML is a meta language, there are an infinite number of XML formats, and most XML documents should respect a particular document model, which can be defined in one of two ways: By a Document Type Definition (DTD); By an XML Schema. In this article, we are going to look at how you should go about implementing the former, using a DTD.