Don't use XML::Simple. Explore using XML::Twig or other, more functional modules.
In reply to Re: Reading multi-level-tag XML file by GotToBTru in thread Reading multi-level-tag XML file by CSharma