Example #1
0
            protected void ValidationEH(object sender, ValidationEventArgs args)
            {
                if (args.Severity == XmlSeverityType.Warning)
                {
                    logger.Info("WARNING: ");
                }
                else if (args.Severity == XmlSeverityType.Error)
                {
                    logger.Error("ERROR: ");
                }

                XmlSchemaComplexType source = args.Exception.SourceSchemaObject as XmlSchemaComplexType;

                logger.Info(args.ToString());

                if (source != null)
                {
                    logger.Info(string.Format(CultureInfo.InvariantCulture, "{0}", source.Name));
                }
            }
Example #2
0
 void Xrs_ValidationEventHandler(Object sender, ValidationEventArgs e)
 {
     MiniLogger.log(MethodBase.GetCurrentMethod(), e.ToString());
 }
 /// <summary>
 /// Outputs the validation of the XML
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private static void ValidationHandler(object sender, ValidationEventArgs args)
 {
     Trace.WriteLine(args.ToString(), "NMLSeriliazer.ValidationHandler");
 }
Example #4
0
 void validateReader(object sender, ValidationEventArgs e)
 {
     Logger.logMethod(MethodBase.GetCurrentMethod(), e.ToString());
 }
Example #5
0
 private static void ValidationHandler(object sender, ValidationEventArgs args)
 {
     Debug.WriteLine(args.ToString());
 }