XML::Simple returns the parsed data as a hash and hashes are by definition unordered. If order's important you'll need to step up to a bit more heavyweight solution such as XML::Twig which should preserve the parsed tree in its original order (although accessing an traversal will become a bit more involved, but you should be able to abstract that behind subs fairly easy).
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: maintaing the order of XML
by Fletch
in thread maintaing the order of XML
by thickice97
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |