Reverting xml files to readable/usable/correct state