The DTD Compiler is a Perl script creating a Parser for certain XML documents by reading the document type description (DTD) and a handler description (C fragments). The generated C program utilizes the SAX interface of expat or libxml to analyze the XML documents.