in reply to xml tag mapping?

I'm guessing the following happened:

You want to compare the hashes references by $hash and $hash1, not the hashes %hash and %hash1.