Note that the order of attribute specifications in a start-tag or empty-element tag is not significant.
However, Difftastic 0.60.0 says it does:
$ difft --syntax-highlight off --display=inline a.xml b.xml
b.xml --- XML
1 <foo bar="1" quux="true"/>
1 <foo quux="true" bar="1"/>
Operating system is Windows 10 with WSL (Ubuntu 22.04).
a.xml
<foo bar="1" quux="true"/>
b.xml
<foo quux="true" bar="1"/>
Background
I have frequently been in the situation of having to compare XML files that had different attribute ordering. I was hoping that Difftastic would spare me at least part of the manual "normalization" work that I then have to do. (The other parts relate to formatting, which difft makes unnecessary but is easy to do, and namespace prefix numbering, which I won't ask Difftastic authors about in the interest of their sanity.)
According to section 3.1 of the XML specification, the order of attributes does not matter:
However, Difftastic 0.60.0 says it does:
Operating system is Windows 10 with WSL (Ubuntu 22.04).
a.xml
b.xml
Background
I have frequently been in the situation of having to compare XML files that had different attribute ordering. I was hoping that Difftastic would spare me at least part of the manual "normalization" work that I then have to do. (The other parts relate to formatting, which difft makes unnecessary but is easy to do, and namespace prefix numbering, which I won't ask Difftastic authors about in the interest of their sanity.)