in reply to Re: Accessing attributes in XML::Simple
in thread Accessing attributes in XML::Simple

KeyAttr => 1 is wrong. The value should be an array ref or a hash ref. In this case, you want KeyAttr => []

ForceArray => 1 is overkill. ForceArray => [qw( car footnote )] would be more appropriate

Replies are listed 'Best First'.
Re^3: Accessing attributes in XML::Simple
by gube (Parson) on Dec 31, 2009 at 22:55 UTC

    You are right ikegami. If array ref i totally agree to you.

    Thanks,

    Gubs