Please try this perl code, I haven't used any external modules.I strongly recommend using a parser module, due to the many reasons stated in XML parsing vs Regular expressions. Why not leverage the tried-and-true efforts of others? This is not a wheel worth reinventing.
In reply to Re^2: Sort xml based on attribute (use a parser)
by toolic
in thread Sort xml based on attribute
by bharathinc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |