You've fallen into a trap. Read the post again. It tries to use the keep_atts_order option of XML::Twig, and the whole purpose of that option is to be able to output the attributes in a particular order.
In reply to Re^2: set attributes to an element in user defined order
by ambrus
in thread set attributes to an element in user defined order
by bharathinc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |