I was trying to get at the data structure that you're after and how you want to use the data (convert it to another format, filter it, prune some of the XML, etc.).
If you're going to query on certain conditions, you can use XPath with modules like XML::XPath and XML::Twig. If you simply want a Perl data structure, something like XML::Simple will do.