What is a Document Type Declaration ?

This attaches a DTD to an XML file.  This is not the same as DTD.  The <!DOCTYPE> declaration points to the external DTD file, but it can also contain DTD within.

<!DOCTYPE customer SYSTEM "cus_schema.dtd">