in reply to Forcing XML to validate

Re: Re: using XML::LIbXML to validate against a dtd and retrieve any errors therein
has some information on validation techniques