Repair XML