Some suggestions ...
• Take your question to www.perlmonks.org or stackoverflow.com you will get quality answers faster there.
• Use Data::Dumper to display the data structure returned by XMLin.
• If the answer is not obvious to you once you have used Data::Dumper then you probably need to read perlreftut - a tutorial on Perl references.
• This article helps you avoid common pitfalls with XML::Simple and this one helps you move to a better module.