xml Document Type Declaration


Example

An XML document can contain a DTD. DTD stands for Document Type Declaration. A DTD begins with <!DOCTYPE root-element-name > where doc-element-name must match the name of the so-called document element (the one element at the top-level).

<?xml version="1.0"?>
<!DOCTYPE document>
<document>
  <!-- the rest of the document -->
</document>