Compare XML, not file contents.
Cleaned up and commented.
Removed a debugging print, and commented.