in reply to XML::Simple usage question

According to the "My element order is getting jumbled up" section of XML::Simple::FAQ, the short answer is no. (see excerpt below)

If your application really is sensitive to element order, don't use XML::Simple (and don't put order-sensitive values in attributes).

Since XML::Simple is the only XML parsing module that I personally have used so far, I really can't suggest an alternative.