http://qs1969.pair.com?node_id=709815


in reply to Re: How to create XML tree from non-XML source
in thread How to create XML tree from non-XML source

Thanks for your input. Unfortunately, XML::Simple does not preserve the ordering of subnodes because it uses hashes rather than lists. In your example, there is no way of telling whether <name> or <author> should appear first in the resulting XML. Sorry I forgot to mention that, in my case, order does matter.