147 references to XmlSeverityType
dotnet-svcutil-lib (147)
FrameworkFork\Microsoft.Xml\Xml\Core\IValidationEventHandling.cs (1)
18
void SendEvent(Exception exception,
XmlSeverityType
severity);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (5)
2592
SendValidationEvent(
XmlSeverityType
.Error, ResXml.Sch_ParEntityRefNesting, null, _ps.LineNo, _ps.LinePos);
2819
private void SendValidationEvent(
XmlSeverityType
severity, string code, string arg, int lineNo, int linePos)
2824
private void SendValidationEvent(
XmlSeverityType
severity, XmlSchemaException exception)
4575
SendValidationEvent(
XmlSeverityType
.Error, ResXml.Sch_StandAloneNormalization, attr.GetNameWPrefix(_nameTable), attr.LineNo, attr.LinePos);
4606
SendValidationEvent(
XmlSeverityType
.Error, ResXml.Sch_UnSpecifiedDefaultAttributeInExternalStandalone, qname, _curNode.LineNo, _curNode.LinePos);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlValidatingReaderImpl.cs (2)
59
void IValidationEventHandling.SendEvent(Exception /*XmlSchemaException*/ exception,
XmlSeverityType
severity)
65
else if (_reader.ValidationType != ValidationType.None && severity ==
XmlSeverityType
.Error)
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentSchemaValidator.cs (3)
803
if (arg.Severity ==
XmlSeverityType
.Error)
811
if (arg.Severity ==
XmlSeverityType
.Error)
822
else if (arg.Severity ==
XmlSeverityType
.Error)
FrameworkFork\Microsoft.Xml\Xml\schema\BaseProcessor.cs (13)
229
SendValidationEvent(new XmlSchemaException(code, source),
XmlSeverityType
.Error);
234
SendValidationEvent(new XmlSchemaException(code, msg, source),
XmlSeverityType
.Error);
239
SendValidationEvent(new XmlSchemaException(code, new string[] { msg1, msg2 }, source),
XmlSeverityType
.Error);
244
SendValidationEvent(new XmlSchemaException(code, args, innerException, source.SourceUri, source.LineNumber, source.LinePosition, source),
XmlSeverityType
.Error);
249
SendValidationEvent(new XmlSchemaException(code, new string[] { msg1, msg2 }, sourceUri, lineNumber, linePosition),
XmlSeverityType
.Error);
252
protected void SendValidationEvent(string code, XmlSchemaObject source,
XmlSeverityType
severity)
259
SendValidationEvent(e,
XmlSeverityType
.Error);
262
protected void SendValidationEvent(string code, string msg, XmlSchemaObject source,
XmlSeverityType
severity)
267
protected void SendValidationEvent(XmlSchemaException e,
XmlSeverityType
severity)
269
if (severity ==
XmlSeverityType
.Error)
277
else if (severity ==
XmlSeverityType
.Error)
283
protected void SendValidationEventNoThrow(XmlSchemaException e,
XmlSeverityType
severity)
285
if (severity ==
XmlSeverityType
.Error)
FrameworkFork\Microsoft.Xml\Xml\schema\basevalidator.cs (6)
259
SendValidationEvent(e,
XmlSeverityType
.Error);
262
protected void SendValidationEvent(string code, string msg,
XmlSeverityType
severity)
267
protected void SendValidationEvent(string code, string[] args,
XmlSeverityType
severity)
272
protected void SendValidationEvent(XmlSchemaException e,
XmlSeverityType
severity)
278
else if (severity ==
XmlSeverityType
.Error)
329
eventHandling.SendEvent(e,
XmlSeverityType
.Error);
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (25)
433
SendValidationEvent(
XmlSeverityType
.Error, new XmlSchemaException(ResXml.Sch_UndeclaredNotation, un.name, BaseUriStr, (int)un.lineNo, (int)un.linePos));
583
SendValidationEvent(_curPos,
XmlSeverityType
.Error, ResXml.Sch_ParEntityRefNesting, string.Empty);
643
SendValidationEvent(_curPos,
XmlSeverityType
.Error, ResXml.Sch_ParEntityRefNesting, string.Empty);
788
SendValidationEvent(
XmlSeverityType
.Error, ResXml.Sch_IdAttrDeclared, elementDecl.Name.ToString());
801
SendValidationEvent(_curPos - 8,
XmlSeverityType
.Error, ResXml.Sch_DupNotationAttribute, elementDecl.Name.ToString()); // 8 == strlen("NOTATION")
809
SendValidationEvent(_curPos - 8,
XmlSeverityType
.Error, ResXml.Sch_NotationAttributeOnEmptyElement, elementDecl.Name.ToString());// 8 == strlen("NOTATION")
834
SendValidationEvent(
XmlSeverityType
.Error, new XmlSchemaException(ResXml.Xml_AttlistDuplNotationValue, notationName, BaseUriStr, (int)LineNo, (int)LinePos));
873
SendValidationEvent(
XmlSeverityType
.Error, new XmlSchemaException(ResXml.Xml_AttlistDuplEnumValue, nmtoken, BaseUriStr, (int)LineNo, (int)LinePos));
918
SendValidationEvent(_curPos,
XmlSeverityType
.Error, ResXml.Sch_AttListPresence, string.Empty);
956
SendValidationEvent(_curPos - name.Name.Length,
XmlSeverityType
.Error, ResXml.Sch_DupElementDecl, GetNameString());
1100
SendValidationEvent(_curPos,
XmlSeverityType
.Error, ResXml.Sch_ParEntityRefNesting, string.Empty);
1162
SendValidationEvent(_curPos,
XmlSeverityType
.Error, ResXml.Sch_ParEntityRefNesting, string.Empty);
1187
SendValidationEvent(_curPos,
XmlSeverityType
.Error, ResXml.Sch_ParEntityRefNesting, string.Empty);
1199
SendValidationEvent(
XmlSeverityType
.Error, ResXml.Sch_DupElement, name.ToString());
1208
SendValidationEvent(_curPos,
XmlSeverityType
.Error, ResXml.Sch_ParEntityRefNesting, string.Empty);
1344
SendValidationEvent(_curPos - notationName.Name.Length,
XmlSeverityType
.Error, ResXml.Sch_DupNotation, notationName.Name);
1409
SendValidationEvent(
XmlSeverityType
.Error, ResXml.Sch_ParEntityRefNesting, null);
1447
SendValidationEvent(_curPos,
XmlSeverityType
.Error, ResXml.Sch_ParEntityRefNesting, string.Empty);
1472
SendValidationEvent(_curPos,
XmlSeverityType
.Error, ResXml.Sch_ParEntityRefNesting, string.Empty);
1481
SendValidationEvent(_curPos,
XmlSeverityType
.Error, ResXml.Sch_ParEntityRefNesting, string.Empty);
3436
SendValidationEvent(_curPos - entityName.Name.Length - 1,
XmlSeverityType
.Error, ResXml.Xml_UndeclaredParEntity, entityName.Name);
3445
SendValidationEvent(_curPos - entityName.Name.Length - 1,
XmlSeverityType
.Error, ResXml.Xml_UndeclaredEntity, entityName.Name);
3472
private void SendValidationEvent(int pos,
XmlSeverityType
severity, string code, string arg)
3478
private void SendValidationEvent(
XmlSeverityType
severity, string code, string arg)
3484
private void SendValidationEvent(
XmlSeverityType
severity, XmlSchemaException e)
FrameworkFork\Microsoft.Xml\Xml\schema\dtdvalidator.cs (4)
98
SendValidationEvent(ResXml.Xml_NoDTDPresent, _name.ToString(),
XmlSeverityType
.Warning);
557
eventHandling.SendEvent(e,
XmlSeverityType
.Error);
606
eventHandling.SendEvent(e,
XmlSeverityType
.Error);
622
eventHandling.SendEvent(e,
XmlSeverityType
.Error);
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (6)
349
SendValidationEvent(new XmlSchemaException(ResXml.Sch_InvalidIncludeLocation, null, innerException, include.SourceUri, include.LineNumber, include.LinePosition, include),
XmlSeverityType
.Warning);
399
SendValidationEvent(ResXml.Sch_InvalidIncludeLocation, include,
XmlSeverityType
.Warning);
418
SendValidationEvent(new XmlSchemaException(ResXml.Sch_InvalidIncludeLocation, null, eInner, include.SourceUri, include.LineNumber, include.LinePosition, include),
XmlSeverityType
.Warning);
428
SendValidationEvent(new XmlSchemaException(ResXml.Sch_InvalidIncludeLocation, null, innerException, include.SourceUri, include.LineNumber, include.LinePosition, include),
XmlSeverityType
.Warning);
861
SendValidationEvent(ResXml.Sch_MultipleRedefine, redefine,
XmlSeverityType
.Warning);
2140
SendValidationEvent(ResXml.Sch_UnrefNS, value.Namespace, xso,
XmlSeverityType
.Warning);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaAttDef.cs (1)
220
validationEventHandling.SendEvent(new XmlSchemaException(ResXml.Sch_XmlSpace, string.Empty),
XmlSeverityType
.Error);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (6)
1063
SendValidationEvent(ResXml.Sch_EmptyChoice, choice,
XmlSeverityType
.Warning);
1167
SendValidationEvent(ResXml.Sch_EmptyChoice, groupRef,
XmlSeverityType
.Warning);
1266
SendValidationEvent(ResXml.Sch_EmptyChoice, oldChoice,
XmlSeverityType
.Warning);
1811
SendValidationEvent(ResXml.Sch_AttributeIgnored, attribute.QualifiedName.ToString(), attribute,
XmlSeverityType
.Warning);
1837
SendValidationEvent(ResXml.Sch_AttributeIgnored, attributeValue.QualifiedName.ToString(), attributeValue,
XmlSeverityType
.Warning);
2505
SendValidationEvent(ResXml.Sch_ComplexContentModel, complexType,
XmlSeverityType
.Warning);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (4)
245
SendValidationEventNoThrow(new XmlSchemaException(ResXml.Sch_CannotLoadSchema, new string[] { schemaLocation, e.Message }, e.SourceUri, e.LineNumber, e.LinePosition),
XmlSeverityType
.Error);
249
SendValidationEvent(ResXml.Sch_InvalidIncludeLocation, include,
XmlSeverityType
.Warning);
258
SendValidationEvent(ResXml.Sch_InvalidIncludeLocation, include,
XmlSeverityType
.Warning);
1777
SendValidationEvent(ResXml.Sch_UnrefNS, value.Namespace, xso,
XmlSeverityType
.Warning);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (6)
1183
SendValidationEvent(ResXml.Sch_EmptyChoice, choice,
XmlSeverityType
.Warning);
1293
SendValidationEvent(ResXml.Sch_EmptyChoice, groupRef,
XmlSeverityType
.Warning);
1381
SendValidationEvent(ResXml.Sch_EmptyChoice, oldChoice,
XmlSeverityType
.Warning);
2154
SendValidationEvent(ResXml.Sch_AttributeIgnored, attr.QualifiedName.ToString(), attr,
XmlSeverityType
.Warning);
2180
SendValidationEvent(ResXml.Sch_AttributeIgnored, attribute.QualifiedName.ToString(), attribute,
XmlSeverityType
.Warning);
2948
SendValidationEvent(ResXml.Sch_ComplexContentModel, complexType,
XmlSeverityType
.Warning);
FrameworkFork\Microsoft.Xml\Xml\schema\ValidationEventArgs.cs (4)
18
private
XmlSeverityType
_severity;
23
_severity =
XmlSeverityType
.Error;
26
internal ValidationEventArgs(XmlSchemaException ex,
XmlSeverityType
severity) : base()
33
public
XmlSeverityType
Severity
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (5)
541
SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { uri, e.Message },
XmlSeverityType
.Warning);
1805
private void SendValidationEvent(string code, string[] args,
XmlSeverityType
severity)
1817
SendValidationEvent(new XmlSchemaException(code, msg, _reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition),
XmlSeverityType
.Error);
1820
private void SendValidationEvent(XmlSchemaException e,
XmlSeverityType
severity)
1827
else if (severity ==
XmlSeverityType
.Error)
FrameworkFork\Microsoft.Xml\Xml\schema\xdrvalidator.cs (3)
354
SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { uri, e.Message },
XmlSeverityType
.Error);
358
SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { uri, e.Message },
XmlSeverityType
.Warning);
450
SendValidationEvent(new XmlSchemaException(ResXml.Xml_NoValidation, string.Empty),
XmlSeverityType
.Warning);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (7)
560
SendValidationEvent(new XmlSchemaException(ResXml.Sch_SchemaNotRemoved, string.Empty),
XmlSeverityType
.Warning);
645
SendValidationEvent(new XmlSchemaException(ResXml.Sch_SchemaNotPreprocessed, string.Empty),
XmlSeverityType
.Error);
1253
SendValidationEvent(e,
XmlSeverityType
.Error);
1424
SendValidationEvent(new XmlSchemaException(ResXml.Sch_MismatchTargetNamespaceEx, new string[] { targetNamespace, schema.TargetNamespace }),
XmlSeverityType
.Error);
1587
SendValidationEvent(new XmlSchemaException(code, qname.ToString()),
XmlSeverityType
.Error);
1619
if (e.Severity ==
XmlSeverityType
.Error)
1625
private void SendValidationEvent(XmlSchemaException e,
XmlSeverityType
severity)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (31)
348
SendValidationEvent(ResXml.Sch_ComponentAlreadySeenForNS, tns,
XmlSeverityType
.Error);
371
SendValidationEvent(ResXml.Sch_ComponentAlreadySeenForNS, tns,
XmlSeverityType
.Error);
589
SendValidationEvent(ResXml.Sch_NoAttributeSchemaFound, attQName.ToString(),
XmlSeverityType
.Warning);
691
SendValidationEvent(ResXml.Sch_NoAttributeSchemaFound, attQName.ToString(),
XmlSeverityType
.Warning);
1704
XmlSeverityType
severity =
XmlSeverityType
.Warning;
1707
severity =
XmlSeverityType
.Error;
1772
SendValidationEvent(ResXml.Sch_NoElementSchemaFound, QNameString(_context.LocalName, _context.Namespace),
XmlSeverityType
.Warning);
1882
SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { uri, e.Message }, e,
XmlSeverityType
.Warning);
2048
SendValidationEvent(new XmlSchemaValidationException(ResXml.Sch_UndeclaredId, next.Id, _sourceUriString, next.LineNo, next.LinePos),
XmlSeverityType
.Error);
2549
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_InvalidElementContentComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name), ResXml.Sch_ComplexContentModel }, sourceUri, lineNo, linePos),
XmlSeverityType
.Error);
2553
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_InvalidElementContent, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name) }, sourceUri, lineNo, linePos),
XmlSeverityType
.Error);
2561
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_InvalidElementContentExpectingComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name), PrintExpectedElements(names, getParticles), ResXml.Sch_ComplexContentModel }, sourceUri, lineNo, linePos),
XmlSeverityType
.Error);
2565
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_InvalidElementContentExpecting, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name), PrintExpectedElements(names, getParticles) }, sourceUri, lineNo, linePos),
XmlSeverityType
.Error);
2573
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_InvalidElementInEmptyEx, new string[] { QNameString(context.LocalName, context.Namespace), name.ToString() }, sourceUri, lineNo, linePos),
XmlSeverityType
.Error);
2577
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_InvalidElementInTextOnlyEx, new string[] { QNameString(context.LocalName, context.Namespace), name.ToString() }, sourceUri, lineNo, linePos),
XmlSeverityType
.Error);
2602
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_IncompleteContentComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), ResXml.Sch_ComplexContentModel }, sourceUri, lineNo, linePos),
XmlSeverityType
.Error);
2604
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_IncompleteContent, BuildElementName(context.LocalName, context.Namespace), sourceUri, lineNo, linePos),
XmlSeverityType
.Error);
2611
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_IncompleteContentExpectingComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), PrintExpectedElements(names, getParticles), ResXml.Sch_ComplexContentModel }, sourceUri, lineNo, linePos),
XmlSeverityType
.Error);
2615
SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_IncompleteContentExpecting, new string[] { BuildElementName(context.LocalName, context.Namespace), PrintExpectedElements(names, getParticles) }, sourceUri, lineNo, linePos),
XmlSeverityType
.Error);
2832
private void SendValidationEvent(string code, string[] args, Exception innerException,
XmlSeverityType
severity)
2834
if (severity !=
XmlSeverityType
.Warning || ReportValidationWarnings)
2842
SendValidationEvent(new XmlSchemaValidationException(code, args, innerException, _sourceUriString, _positionInfo.LineNumber, _positionInfo.LinePosition),
XmlSeverityType
.Error);
2847
SendValidationEvent(e,
XmlSeverityType
.Error);
2852
SendValidationEvent(new XmlSchemaValidationException(e.GetRes, e.Args, e.SourceUri, e.LineNumber, e.LinePosition),
XmlSeverityType
.Error);
2855
private void SendValidationEvent(string code, string msg,
XmlSeverityType
severity)
2857
if (severity !=
XmlSeverityType
.Warning || ReportValidationWarnings)
2863
private void SendValidationEvent(XmlSchemaValidationException e,
XmlSeverityType
severity)
2866
if (severity ==
XmlSeverityType
.Error)
2888
internal static void SendValidationEvent(ValidationEventHandler eventHandler, object sender, XmlSchemaValidationException e,
XmlSeverityType
severity)
2894
else if (severity ==
XmlSeverityType
.Error)
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (5)
746
SendValidationEvent(ResXml.Sch_InvalidXsdAttributeDatatypeValue, new string[] { name, e.Message },
XmlSeverityType
.Error);
2574
private void SendValidationEvent(string code, string[] args,
XmlSeverityType
severity)
2579
private void SendValidationEvent(XmlSchemaException e,
XmlSeverityType
severity)
2587
else if (severity ==
XmlSeverityType
.Error)
2595
SendValidationEvent(e,
XmlSeverityType
.Error);
FrameworkFork\Microsoft.Xml\Xml\schema\xsdvalidator.cs (5)
167
SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { BaseUri.AbsoluteUri, e.Message },
XmlSeverityType
.Error);
240
SendValidationEvent(ResXml.Sch_NoElementSchemaFound, XmlSchemaValidator.QNameString(context.LocalName, context.Namespace),
XmlSeverityType
.Warning);
527
SendValidationEvent(ResXml.Sch_NoAttributeSchemaFound, attQName.ToString(),
XmlSeverityType
.Warning);
615
SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { uri, e.Message },
XmlSeverityType
.Error);
620
SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { uri, e.Message },
XmlSeverityType
.Warning);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (1)
1275
if (args.Severity ==
XmlSeverityType
.Error)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (1)
581
if (args.Severity ==
XmlSeverityType
.Error)
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigator.cs (2)
1151
if (args.Severity ==
XmlSeverityType
.Error)
1161
else if (exception != null && args.Severity ==
XmlSeverityType
.Error)
FrameworkFork\System.Web.Services\Services\Description\WebReferenceOptions.cs (1)
177
if (args.Severity !=
XmlSeverityType
.Error)