Structure At the heart of an SGML application is a file called the DTD, or Document Type Definition. The DTD sets up the structure of a document, much like a database schema describes the types of information it handles. A database schema also defines the relationships between the various types of data. Similarly, a DTD specifies rules to help ensure documents have a consistent, logical structure.