public override void Execute(Context context) { InitializeSchemaSet(); ArrayList arr = new ArrayList(); // Load XML document from input file try { SchemaValidator sv = new SchemaValidator(SchemaSet); arr = sv.ValidateIt(InputFileName); context.Add("XmlValidateStepErrorCount", arr.Count.ToString(), true); if (arr.Count > 0) { foreach (string valerr in arr) { context.LogInfo(valerr); } } } //catch any exceptions from the try block catch (Exception ex) { context.LogException(ex); } }