I’d like
<node a="2" d="1" c="2">
to be converted to
<node a="2" c="2" d="1">
Can you propose some solution with less effort?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use an XML canonicalization library. XML canonical form requires the attributes to be in alphabetical order (so that two documents can be compared for equivalence by comparing them at the byte level).