in reply to maintaing the order of XML

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.

Replies are listed 'Best First'.
Re^2: maintaing the order of XML
by thickice97 (Initiate) on Jan 24, 2008 at 17:22 UTC
    Does that mean I would need to change the whole code? Or could I use the subroutines for the XML::Twig?
      Does that mean I would need to change the whole code?

      Yes.  It wouldn't make much sense having an XML::Simple, if its disadvantages (in some contexts) wouldn't be outweighed by its somewhat simpler usage.