in reply to Re: sort order of imported xml data?
in thread sort order of imported xml data?
The solution is to combine ForceArray with the option KeyAttr to also force key attributes into an array.
my $config = XMLin("meep.xlf", ForceArray => 1, KeyAttr =>[]);
NB: This changes the structure that XML::Simple returns so you will need to update your code a little.
I tend to use Data::Dumper to inspect the hash that XML::Simple returns to check if that meets my needs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: sort order of imported xml data?
by roboticus (Chancellor) on Mar 31, 2007 at 13:46 UTC | |
|
Re^3: sort order of imported xml data?
by Xenofur (Monk) on Apr 07, 2007 at 02:33 UTC |