If I'm not completely wrong, Test::XML is not for comparing but for testing whether or not something is xml.
XML::SemanticDiff could do it if my files were in the filesystem. But as I said: They are read from a database. I could save them in the file system but then I'd also need a module for random, unique filenames (Yes! I know there is one).
Nevertheless: Thanks for your try.
Regarding the (not-so-well) hidden allegation that I didn't search by myself. There is a reason behind it. You'll find the experts here. People with some experience. So why not hope one or the other has good recommendations for modules doing what I need. You can't recommend, as you stated yourself to have no experience.
Let's hope someone with some more XML::Twig knowledge has an answer too.
Sorry! I didn't mean it to be a jibe about not searching yourself, although I see it reads like that. I was actually trying to point out I wasn't providing a recommendation based on real use - the kind of thing you are right to expect from the monastery.
I looked at all because I know I'll shortly be needing a similar task. Please post what solution you end up with
BTW, on looking slightly further at XML::Test I see it uses XML::SematicDiff to do its comparisons. It is not testing if something is XML, but if two xml snippets are semantically equivalent. However its not really appropriate since a) its bulit as a Test module and b) its just using XML::SemanticDiff anyway.