A repair should fix the defect without rewriting the evidence around it. Start with the source document and identify the single field that conflicts with it. An amount error, a currency error and a party error have different consequences. Changing all three until a checker accepts the message destroys the audit trail.
Work across the original XML and legacy-tagged teaching records. Keep separators, references, signed entry indicators and unaffected values intact. Each task supplies the intended value, so you don't need to infer a customer identity or invent a missing amount. The finished body should be both readable by the local parser and faithful to the supplied record. It remains an instructional subset.
Compare the worked record with its source facts and stated policy.