XML-Simple - Re: Using keyattr causes repeated elements to be ignored

Posted on Tue Mar 28 23:59:35 2006 by grantm in response to 2051 (See the whole thread of 2)
Re: Using keyattr causes repeated elements to be ignored

Yes, this is this the expected behaviour. When multiple values are assigned to the same hash key, each new value will overwrite the previous one.

You might be better off switching to XML::LibXML. This article compares the two modules.

Since your XML uses namespaces, you'll also need to use XML::LibXML::XPathContext.

Either the Perlmonks web site or the Perl-XML mailing lists are better places to get help.

Write a response