add MaxAttempts to adaptive XML