/// <param name="theContext">the set of validation rules to be applied to messages parsed or /// encoded by this parser (defaults to ValidationContextFactory.DefaultValidation) /// </param> public virtual void setValidationContext(ValidationContext theContext) { myContext = theContext; myValidator = new MessageValidator(theContext, true); }