XML fixing