Improved equality and hash code
Improvements to the xml repository