http://www.perlmonks.org?node_id=168811


in reply to XML and Perl

In addition to everyone else’s excellent suggestions you might want to check out XML::DOM::ValParser, XML::Checker, XML::Checker::Parser they are all on cpan with a search for XML. Look about 1/3 down the page. I have used Checker and the DOM validating parser with excellent results in the past. I actually did something very close to what your trying to do with all of this and these modules worked very well for me, especially XML::DOM::ValParser.
Good Luck
. ---Mogaka is good