From The Document Foundation Wiki
Jump to navigation Jump to search

The DTD will specify which elements and attributes will be used in the XML document and will describe its structure and content. The DTD can be internal to the document (it includes the definitions in the document itself) or external (it is located in a local file or called by URL). The XML standard does not mandate the DTD, and we talk about XML document if it has a valid DTD or XML document well-formed if it does not include (but he respects the XML standard).