This method of the Document class retrieves the document's DTD.
public DTD getDTD();
Returns the DTD.