good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Reading a particular xmlby Corion (Patriarch) |
on Aug 14, 2015 at 19:33 UTC ( [id://1138634]=note: print w/replies, xml ) | Need Help?? |
The short answer is: Don't use XML::Simple. The longer answer is: Show us your code. The long answer is: Sometimes, in your input XML, there is an element that never repeats, and in other input XML, it repeats. Because XML::Simple makes some guesses about your XML, it is sometimes wrong. Use the ForceArray parameter to tell XML::Simple about which elements you think should repeat.
In Section
Seekers of Perl Wisdom
|
|