For a long time I've been wanting to add an XML output option to exiftool. (And maybe later the corresponding ability to read the output XML file to set tag values.) But the one thing that has stopped me is deciding on the XML format. Here is my first go at the possibilities. I would appreciate comments to let me know if the format can be improved to be more useful for you.
First, maybe the basic -X option could output like