Ejemplo n.º 1
0
        protected virtual void OnXmlValidationComplete(XmlValidatedEventArgs e)
        {
            XmlValidatedEventHandler handler = XmlValidationComplete;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Ejemplo n.º 2
0
        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;
            }
        }