Why use a DTD (Document Type Definition)?
XML gives an application independent method of sharing data. Along with a DTD, independent group of people can agree to employ a common DTD for interchanging data. An application can utilize a standard DTD to verify that data which an application gets from outside world is valid. A DTD can use by an application also to verify its own data.