in reply to Re: XML::Simple - Duplicate Node Overwrites
in thread XML::Simple - Duplicate Node Overwrites

Yep, that did it, thanks! Changing:
print Dumper XMLin($xml, KeyAttr => 'test');
Changed the output:
$VAR1 = { 'test' => [ { 'first' => { 'content' => 'Mike', 'id' => 'white' }, 'id' => '1' }, { 'last' => { 'content' => 'Gifford', 'id' => 'black' }, 'id' => '1' } ] };

Replies are listed 'Best First'.
Re^3: XML::Simple - Duplicate Node Overwrites
by wind (Priest) on Apr 23, 2011 at 07:36 UTC
    Don't let some other node accidentally get compressed into a hash instead. Set the KeyAttr to the empty string:
    print Dumper XMLin($xml, KeyAttr => '', );