http://www.perlmonks.org?node_id=1232001


in reply to XML compare with a key

As one option, you could use XML::Simple to translate both your xml strings into hash references and then walk through both of them to spot the differences. You could also use a module that does it for you, for example XML::Diff or XML::SemanticDiff.