XML correction