See XML::Simple, especially the section on ForceArray.
In reply to Re^5: Is there any XML reader like this? by Corion in thread Is there any XML reader like this? by ashok.g