output file correction in xml