On Tue, 24 Oct 2023 at 17:39, Srdjan Todorovic todorovic.s@googlemail.com wrote:
There's also this: https://superuser.com/questions/79920/how-can-i-diff-two-xml-files It talks about running xmllint on both files, and then doing a normal diff on the result. Probably fiddly to use for multiple comparisons, but might be a slightly better option?
Thanks I'll take a look. I'm sure it can be scripted to make it simpler.
(In an ideal world, I think that when comparing "new" and "old", the "new" file should be left unchanged but differences with the "old" shown as diffs against it, with things that have simply moved around ignored. Anything which reformats both files for the comparison will tell you that there is a difference in line X where X is meaningless in terms of either the old or new files.)
Also there are XML plugins for VS Code (will run on Linux, but I know some might object).
I do use VSCode as an editor (not a huge fan but I haven't found a cross-platform GUI editor I prefer) so I'll take a look.