Change the XML lib so that if an attribute is a hex number, it leaves it as a string and doesn't try to cast it as a number.