in reply to How to validate an XML file against its DTD?
Dunno about a perl module, but emacs' psgml library invokes nsgmls -s sample.xml, which might help
Originally posted as a Categorized Answer.