protected virtual void OnXmlValidationComplete(XmlValidatedEventArgs e) { XmlValidatedEventHandler handler = XmlValidationComplete; if (handler != null) { handler(this, e); } }
void xmlEditorResponse_XmlValidationComplete(object sender, XmlValidatedEventArgs e) { // This event occurs once the Xml in the response has been validated // If validation fails, we report it if (e.ValidationErrors.Count > 0) { HighlightResponseGroupbox(true, "FAILED XML VALIDATION", String.Join(Environment.NewLine, e.ValidationErrors)); return; } }