in reply to Re: Outputting a hash as XML
in thread Outputting a hash as XML

Yes, the order of elements is significant in XML. Some applications are tolerant of different element ordering, but others are picky. It seems your application is picky, so XML::Simple is definitely not the right tool for the job.

Replies are listed 'Best First'.
Re^3: Outputting a hash as XML
by smeenz (Sexton) on Mar 16, 2005 at 21:19 UTC
    right.. so.. I either kludge this by storing a static list so I know what order to output the tags in, or I read parse the DTD every time to be completely correct, but with the drawback of the additional overhead that would create.

    I think I'll just go for a static list indicating the order the tags need to appear.