private void LogSchemaValidationErrors()
{
// Log all the schema validation warnings if exist
foreach (ValidationEventArgs warning in SchemaValidation.XmlValidationWarnings)
{
this.Site.Log.Add(
LogEntryKind.Warning,
"Schema validation Warning:{0} occurs in the position ({1},{2})",
warning.Exception.Message,
warning.Exception.LineNumber,
warning.Exception.LinePosition);
}
// Log all the schema validation errors if exist
foreach (ValidationEventArgs error in SchemaValidation.XmlValidationErrors)
{
this.Site.Log.Add(
LogEntryKind.TestError,
"Schema validation Error:{0} occurs in the position ({1},{2})",
error.Exception.Message,
error.Exception.LineNumber,
error.Exception.LinePosition);
}
}