Note 1: The default value for 'KeyAttr' is ['name', 'key', 'id']. If you do not want folding on input or unfolding on output you must setting this option to an empty list to disable the feature. #### my $xml = XML::Simple->new(KeyAttr=>[]);