There are various modules available from CPAN for handling DTD files.
In reply to Re: How Can Get DTD elements/Attribute by ig in thread How Can Get DTD elements/Attribute by sasi555