Comparing Digikam's XMP fields

After switching digikam settings from file.XMP to file.ext.XMP, I ended up with thousands of sidecar XMP files I would like to cleanup. When I compare the files, the order of tags is always different. Is there a setting to Digikam to write out each XML section in a sorted order or some standard order? Are there existing tools to pre-format the files before diffing them?

Second question: some significant looking tags (for example, exposure) are present in one XMP version and are not saved in the next, bringning up the uncomfortable question - what else is dropped. Any hints dealing with this?

Here are two I found by searching for “xml diff”:

https://xmldiff.readthedocs.io/en/stable/index.html

1 Like