One of the modules that I have seen being used is XML::Pastor. You can use this to generate perl modules based on the schema which has the necessary accessors and use it while parsing the XML.
Comment on Re: automated conversion from XML Schema to Perl OO