repair .xml files