To apply a DTD to an XML document, you can:
1) Use the DTD element definition within the XML document itself.
2) Provide a DTD as a separate file and reference its name in XML document.