Added some debug code (checksum and stats of xml character data)