I just skimmed over your post and didn't look at your code and data very closely. (I apologize if I misread the problem in my haste.)
However, it sounds to me like you'd be interested in checking out the ForceArray option for the XML::Simple module. You can force everything into arrays or only certain elements that you specify.
In reply to Re: Problem parsing XML into arrays using XML::Simple
by dasgar
in thread Problem parsing XML into arrays using XML::Simple
by tevolo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |