in reply to XML::Simple hash tree structure not consistent

Did you try either ForceArray => 1, or
ForceArray => ['keyname']
In the later case the list could have many elements.

Phil