Added xml validation.