PiyaPerl has asked for the wisdom of the Perl Monks concerning the following question:

Hello all, I need an input that if I have 2 XML files which I need to compare like below :
<xml top> <xml body> <tag1>jdjdjdjd</tag1> <tag2>dkdkkd</tag2> </xml body> </xmltop> and second file like <xml top> <xml body> <tag2>jdjdjdjd</tag2> <tag1>ghghgh</tag1> </xml body> </xmltop>
So basically the order is different but i want o simply set a key and compare like for like.