in reply to Doctype specific XML Validator

XML::Parser should do this for you. But, you may also be interested in this article discussing validation.

Cheers,
KM