171 references to XmlSeverityType
Microsoft.Build.Tasks.Core (1)
BootstrapperUtil\xmlvalidationresults.cs (1)
38if (e.Severity == System.Xml.Schema.XmlSeverityType.Error)
netstandard (1)
netstandard.cs (1)
2377[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSeverityType))]
System.Private.Xml (166)
System\Xml\Core\IValidationEventHandling.cs (1)
15void SendEvent(Exception exception, XmlSeverityType severity);
System\Xml\Core\XmlTextReaderImpl.cs (5)
2516SendValidationEvent(XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, null, _ps.LineNo, _ps.LinePos); 2765private void SendValidationEvent(XmlSeverityType severity, string code, string? arg, int lineNo, int linePos) 2770private void SendValidationEvent(XmlSeverityType severity, XmlSchemaException exception) 4483SendValidationEvent(XmlSeverityType.Error, SR.Sch_StandAloneNormalization, attr.GetNameWPrefix(_nameTable), attr.LineNo, attr.LinePos); 4514SendValidationEvent(XmlSeverityType.Error, SR.Sch_UnSpecifiedDefaultAttributeInExternalStandalone, qname, _curNode.LineNo, _curNode.LinePos);
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
788SendValidationEvent(XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, null, _ps.LineNo, _ps.LinePos);
System\Xml\Core\XmlValidatingReaderImpl.cs (2)
54void IValidationEventHandling.SendEvent(Exception /*XmlSchemaException*/ exception, XmlSeverityType severity) 60else if (_reader._validationType != ValidationType.None && severity == XmlSeverityType.Error)
System\Xml\Dom\DocumentSchemaValidator.cs (3)
778if (arg.Severity == XmlSeverityType.Error) 786if (arg.Severity == XmlSeverityType.Error) 797else if (arg.Severity == XmlSeverityType.Error)
System\Xml\Schema\BaseProcessor.cs (13)
215SendValidationEvent(new XmlSchemaException(code, source), XmlSeverityType.Error); 220SendValidationEvent(new XmlSchemaException(code, msg, source), XmlSeverityType.Error); 225SendValidationEvent(new XmlSchemaException(code, new string?[] { msg1, msg2 }, source), XmlSeverityType.Error); 230SendValidationEvent(new XmlSchemaException(code, args, innerException, source.SourceUri, source.LineNumber, source.LinePosition, source), XmlSeverityType.Error); 235SendValidationEvent(new XmlSchemaException(code, new string?[] { msg1, msg2 }, sourceUri, lineNumber, linePosition), XmlSeverityType.Error); 238protected void SendValidationEvent(string code, XmlSchemaObject source, XmlSeverityType severity) 245SendValidationEvent(e, XmlSeverityType.Error); 248protected void SendValidationEvent(string code, string? msg, XmlSchemaObject source, XmlSeverityType severity) 253protected void SendValidationEvent(XmlSchemaException e, XmlSeverityType severity) 255if (severity == XmlSeverityType.Error) 263else if (severity == XmlSeverityType.Error) 269protected void SendValidationEventNoThrow(XmlSchemaException e, XmlSeverityType severity) 271if (severity == XmlSeverityType.Error)
System\Xml\Schema\BaseValidator.cs (6)
267SendValidationEvent(e, XmlSeverityType.Error); 270protected void SendValidationEvent(string code, string? msg, XmlSeverityType severity) 275protected void SendValidationEvent(string code, string?[]? args, XmlSeverityType severity) 280protected void SendValidationEvent(XmlSchemaException e, XmlSeverityType severity) 286else if (severity == XmlSeverityType.Error) 338eventHandling.SendEvent(e, XmlSeverityType.Error);
System\Xml\Schema\DtdParser.cs (25)
421SendValidationEvent(XmlSeverityType.Error, new XmlSchemaException(SR.Sch_UndeclaredNotation, un.name, BaseUriStr, (int)un.lineNo, (int)un.linePos)); 571SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 631SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 776SendValidationEvent(XmlSeverityType.Error, SR.Sch_IdAttrDeclared, elementDecl.Name.ToString()); 789SendValidationEvent(_curPos - 8, XmlSeverityType.Error, SR.Sch_DupNotationAttribute, elementDecl.Name.ToString()); // 8 == strlen("NOTATION") 797SendValidationEvent(_curPos - 8, XmlSeverityType.Error, SR.Sch_NotationAttributeOnEmptyElement, elementDecl.Name.ToString()); // 8 == strlen("NOTATION") 822SendValidationEvent(XmlSeverityType.Error, new XmlSchemaException(SR.Xml_AttlistDuplNotationValue, notationName, BaseUriStr, (int)LineNo, (int)LinePos)); 861SendValidationEvent(XmlSeverityType.Error, new XmlSchemaException(SR.Xml_AttlistDuplEnumValue, nmtoken, BaseUriStr, (int)LineNo, (int)LinePos)); 906SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_AttListPresence, string.Empty); 944SendValidationEvent(_curPos - name.Name.Length, XmlSeverityType.Error, SR.Sch_DupElementDecl, GetNameString()); 1088SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 1150SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 1175SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 1187SendValidationEvent(XmlSeverityType.Error, SR.Sch_DupElement, name.ToString()); 1196SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 1323SendValidationEvent(_curPos - notationName.Name.Length, XmlSeverityType.Error, SR.Sch_DupNotation, notationName.Name); 1385SendValidationEvent(XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, null); 1423SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 1448SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 1457SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 3360SendValidationEvent(_curPos - entityName.Name.Length - 1, XmlSeverityType.Error, SR.Xml_UndeclaredParEntity, entityName.Name); 3369SendValidationEvent(_curPos - entityName.Name.Length - 1, XmlSeverityType.Error, SR.Xml_UndeclaredEntity, entityName.Name); 3396private void SendValidationEvent(int pos, XmlSeverityType severity, string code, string? arg) 3402private void SendValidationEvent(XmlSeverityType severity, string code, string? arg) 3408private void SendValidationEvent(XmlSeverityType severity, XmlSchemaException e)
System\Xml\Schema\DtdParserAsync.cs (20)
63SendValidationEvent(XmlSeverityType.Error, new XmlSchemaException(SR.Sch_UndeclaredNotation, un.name, BaseUriStr, (int)un.lineNo, (int)un.linePos)); 215SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 275SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 420SendValidationEvent(XmlSeverityType.Error, SR.Sch_IdAttrDeclared, elementDecl.Name.ToString()); 433SendValidationEvent(_curPos - 8, XmlSeverityType.Error, SR.Sch_DupNotationAttribute, elementDecl.Name.ToString()); // 8 == strlen("NOTATION") 441SendValidationEvent(_curPos - 8, XmlSeverityType.Error, SR.Sch_NotationAttributeOnEmptyElement, elementDecl.Name.ToString()); // 8 == strlen("NOTATION") 466SendValidationEvent(XmlSeverityType.Error, new XmlSchemaException(SR.Xml_AttlistDuplNotationValue, notationName, BaseUriStr, (int)LineNo, (int)LinePos)); 505SendValidationEvent(XmlSeverityType.Error, new XmlSchemaException(SR.Xml_AttlistDuplEnumValue, nmtoken, BaseUriStr, (int)LineNo, (int)LinePos)); 550SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_AttListPresence, string.Empty); 588SendValidationEvent(_curPos - name.Name.Length, XmlSeverityType.Error, SR.Sch_DupElementDecl, GetNameString()); 719SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 781SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 806SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 818SendValidationEvent(XmlSeverityType.Error, SR.Sch_DupElement, name.ToString()); 827SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 957SendValidationEvent(_curPos - notationName.Name.Length, XmlSeverityType.Error, SR.Sch_DupNotation, notationName.Name); 1006SendValidationEvent(XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, null); 1045SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 1070SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 1079SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty);
System\Xml\Schema\DtdValidator.cs (4)
101SendValidationEvent(SR.Xml_NoDTDPresent, _name.ToString(), XmlSeverityType.Warning); 555eventHandling.SendEvent(e, XmlSeverityType.Error); 601eventHandling.SendEvent(e, XmlSeverityType.Error); 616eventHandling.SendEvent(e, XmlSeverityType.Error);
System\Xml\Schema\Preprocessor.cs (6)
329SendValidationEvent(new XmlSchemaException(SR.Sch_InvalidIncludeLocation, null, innerException, include.SourceUri, include.LineNumber, include.LinePosition, include), XmlSeverityType.Warning); 379SendValidationEvent(SR.Sch_InvalidIncludeLocation, include, XmlSeverityType.Warning); 399SendValidationEvent(new XmlSchemaException(SR.Sch_InvalidIncludeLocation, null, eInner, include.SourceUri, include.LineNumber, include.LinePosition, include), XmlSeverityType.Warning); 409SendValidationEvent(new XmlSchemaException(SR.Sch_InvalidIncludeLocation, null, innerException, include.SourceUri, include.LineNumber, include.LinePosition, include), XmlSeverityType.Warning); 828SendValidationEvent(SR.Sch_MultipleRedefine, redefine, XmlSeverityType.Warning); 2109SendValidationEvent(SR.Sch_UnrefNS, value.Namespace, xso, XmlSeverityType.Warning);
System\Xml\Schema\SchemaAttDef.cs (1)
201validationEventHandling.SendEvent(new XmlSchemaException(SR.Sch_XmlSpace, string.Empty), XmlSeverityType.Error);
System\Xml\Schema\SchemaCollectionCompiler.cs (6)
1061SendValidationEvent(SR.Sch_EmptyChoice, choice, XmlSeverityType.Warning); 1165SendValidationEvent(SR.Sch_EmptyChoice, groupRef, XmlSeverityType.Warning); 1264SendValidationEvent(SR.Sch_EmptyChoice, oldChoice, XmlSeverityType.Warning); 1810SendValidationEvent(SR.Sch_AttributeIgnored, attribute.QualifiedName.ToString(), attribute, XmlSeverityType.Warning); 1836SendValidationEvent(SR.Sch_AttributeIgnored, attributeValue.QualifiedName.ToString(), attributeValue, XmlSeverityType.Warning); 2416SendValidationEvent(SR.Sch_ComplexContentModel, complexType, XmlSeverityType.Warning);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (4)
240SendValidationEventNoThrow(new XmlSchemaException(SR.Sch_CannotLoadSchema, new string[] { schemaLocation, e.Message }, e.SourceUri, e.LineNumber, e.LinePosition), XmlSeverityType.Error); 244SendValidationEvent(SR.Sch_InvalidIncludeLocation, include, XmlSeverityType.Warning); 253SendValidationEvent(SR.Sch_InvalidIncludeLocation, include, XmlSeverityType.Warning); 1764SendValidationEvent(SR.Sch_UnrefNS, value.Namespace, xso, XmlSeverityType.Warning);
System\Xml\Schema\SchemaSetCompiler.cs (6)
1190SendValidationEvent(SR.Sch_EmptyChoice, choice, XmlSeverityType.Warning); 1306SendValidationEvent(SR.Sch_EmptyChoice, groupRef, XmlSeverityType.Warning); 1397SendValidationEvent(SR.Sch_EmptyChoice, oldChoice, XmlSeverityType.Warning); 2170SendValidationEvent(SR.Sch_AttributeIgnored, attr.QualifiedName.ToString(), attr, XmlSeverityType.Warning); 2196SendValidationEvent(SR.Sch_AttributeIgnored, attribute.QualifiedName.ToString(), attribute, XmlSeverityType.Warning); 2885SendValidationEvent(SR.Sch_ComplexContentModel, complexType, XmlSeverityType.Warning);
System\Xml\Schema\ValidationEventArgs.cs (4)
13private readonly XmlSeverityType _severity; 18_severity = XmlSeverityType.Error; 21internal ValidationEventArgs(XmlSchemaException ex, XmlSeverityType severity) : base() 27public XmlSeverityType Severity
System\Xml\Schema\XdrBuilder.cs (5)
534SendValidationEvent(SR.Sch_CannotLoadSchema, new string[] { uri, e.Message }, XmlSeverityType.Warning); 1794private void SendValidationEvent(string? code, string?[]? args, XmlSeverityType severity) 1806SendValidationEvent(new XmlSchemaException(code, msg, _reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition), XmlSeverityType.Error); 1809private void SendValidationEvent(XmlSchemaException e, XmlSeverityType severity) 1816else if (severity == XmlSeverityType.Error)
System\Xml\Schema\XdrValidator.cs (3)
356SendValidationEvent(SR.Sch_CannotLoadSchema, new string[] { uri, e.Message }, XmlSeverityType.Error); 360SendValidationEvent(SR.Sch_CannotLoadSchema, new string[] { uri, e.Message }, XmlSeverityType.Warning); 450SendValidationEvent(new XmlSchemaException(SR.Xml_NoValidation, string.Empty), XmlSeverityType.Warning);
System\Xml\Schema\XmlSchemaSet.cs (7)
447SendValidationEvent(new XmlSchemaException(SR.Sch_SchemaNotRemoved, string.Empty), XmlSeverityType.Warning); 519SendValidationEvent(new XmlSchemaException(SR.Sch_SchemaNotPreprocessed, string.Empty), XmlSeverityType.Error); 1096SendValidationEvent(e, XmlSeverityType.Error); 1261SendValidationEvent(new XmlSchemaException(SR.Sch_MismatchTargetNamespaceEx, new string[] { targetNamespace, schema.TargetNamespace }), XmlSeverityType.Error); 1429SendValidationEvent(new XmlSchemaException(code, qname.ToString()), XmlSeverityType.Error); 1449if (e.Severity == XmlSeverityType.Error) 1455private void SendValidationEvent(XmlSchemaException e, XmlSeverityType severity)
System\Xml\Schema\XmlSchemaValidator.cs (31)
336SendValidationEvent(SR.Sch_ComponentAlreadySeenForNS, tns, XmlSeverityType.Error); 355SendValidationEvent(SR.Sch_ComponentAlreadySeenForNS, tns, XmlSeverityType.Error); 547SendValidationEvent(SR.Sch_NoAttributeSchemaFound, attQName.ToString(), XmlSeverityType.Warning); 651SendValidationEvent(SR.Sch_NoAttributeSchemaFound, attQName.ToString(), XmlSeverityType.Warning); 1687XmlSeverityType severity = XmlSeverityType.Warning; 1690severity = XmlSeverityType.Error; 1752SendValidationEvent(SR.Sch_NoElementSchemaFound, QNameString(_context.LocalName!, _context.Namespace!), XmlSeverityType.Warning); 1861SendValidationEvent(SR.Sch_CannotLoadSchema, new string[] { uri, e.Message }, e, XmlSeverityType.Warning); 2030SendValidationEvent(new XmlSchemaValidationException(SR.Sch_UndeclaredId, next.Id, _sourceUriString, next.LineNo, next.LinePos), XmlSeverityType.Error); 2534SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(SR.Sch_InvalidElementContentComplex, new string[] { BuildElementName(context.LocalName!, context.Namespace!), BuildElementName(name), SR.Sch_ComplexContentModel }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2538SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(SR.Sch_InvalidElementContent, new string[] { BuildElementName(context.LocalName!, context.Namespace!), BuildElementName(name) }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2546SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(SR.Sch_InvalidElementContentExpectingComplex, new string[] { BuildElementName(context.LocalName!, context.Namespace!), BuildElementName(name), PrintExpectedElements(names, getParticles), SR.Sch_ComplexContentModel }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2550SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(SR.Sch_InvalidElementContentExpecting, new string[] { BuildElementName(context.LocalName!, context.Namespace!), BuildElementName(name), PrintExpectedElements(names, getParticles) }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2558SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(SR.Sch_InvalidElementInEmptyEx, new string[] { QNameString(context.LocalName!, context.Namespace!), name.ToString() }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2562SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(SR.Sch_InvalidElementInTextOnlyEx, new string[] { QNameString(context.LocalName!, context.Namespace!), name.ToString() }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2588SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(SR.Sch_IncompleteContentComplex, new string?[] { BuildElementName(context.LocalName!, context.Namespace!), SR.Sch_ComplexContentModel }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2591SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(SR.Sch_IncompleteContent, BuildElementName(context.LocalName!, context.Namespace!), sourceUri, lineNo, linePos), XmlSeverityType.Error); 2598SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(SR.Sch_IncompleteContentExpectingComplex, new string?[] { BuildElementName(context.LocalName!, context.Namespace!), PrintExpectedElements(names, getParticles), SR.Sch_ComplexContentModel }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2602SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(SR.Sch_IncompleteContentExpecting, new string?[] { BuildElementName(context.LocalName!, context.Namespace!), PrintExpectedElements(names, getParticles) }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2822private void SendValidationEvent(string? code, string?[]? args, Exception? innerException, XmlSeverityType severity) 2824if (severity != XmlSeverityType.Warning || ReportValidationWarnings) 2832SendValidationEvent(new XmlSchemaValidationException(code, args, innerException, _sourceUriString, _positionInfo.LineNumber, _positionInfo.LinePosition), XmlSeverityType.Error); 2837SendValidationEvent(e, XmlSeverityType.Error); 2842SendValidationEvent(new XmlSchemaValidationException(e.GetRes, e.Args, e.SourceUri, e.LineNumber, e.LinePosition), XmlSeverityType.Error); 2845private void SendValidationEvent(string code, string msg, XmlSeverityType severity) 2847if (severity != XmlSeverityType.Warning || ReportValidationWarnings) 2853private void SendValidationEvent(XmlSchemaValidationException e, XmlSeverityType severity) 2856if (severity == XmlSeverityType.Error) 2878internal static void SendValidationEvent(ValidationEventHandler? eventHandler, object sender, XmlSchemaValidationException e, XmlSeverityType severity) 2884else if (severity == XmlSeverityType.Error)
System\Xml\Schema\XsdBuilder.cs (5)
741SendValidationEvent(SR.Sch_InvalidXsdAttributeDatatypeValue, new string[] { name, e.Message }, XmlSeverityType.Error); 2569private void SendValidationEvent(string code, string?[] args, XmlSeverityType severity) 2574private void SendValidationEvent(XmlSchemaException e, XmlSeverityType severity) 2582else if (severity == XmlSeverityType.Error) 2590SendValidationEvent(e, XmlSeverityType.Error);
System\Xml\Schema\XsdValidator.cs (5)
164SendValidationEvent(SR.Sch_CannotLoadSchema, new string[] { BaseUri!.AbsoluteUri, e.Message }, XmlSeverityType.Error); 237SendValidationEvent(SR.Sch_NoElementSchemaFound, XmlSchemaValidator.QNameString(context!.LocalName!, context.Namespace!), XmlSeverityType.Warning); 519SendValidationEvent(SR.Sch_NoAttributeSchemaFound, attQName.ToString(), XmlSeverityType.Warning); 604SendValidationEvent(SR.Sch_CannotLoadSchema, new string[] { uri, e.Message }, XmlSeverityType.Error); 609SendValidationEvent(SR.Sch_CannotLoadSchema, new string[] { uri, e.Message }, XmlSeverityType.Warning);
System\Xml\Serialization\Mappings.cs (1)
1207if (args.Severity == XmlSeverityType.Error)
System\Xml\XPath\XPathNavigator.cs (2)
1092if (args.Severity == XmlSeverityType.Error) 1102else if (exception != null && args.Severity == XmlSeverityType.Error)
System.Private.Xml.Linq (1)
System\Xml\Schema\XNodeValidator.cs (1)
369else if (e.Severity == XmlSeverityType.Error)
System.Xml (1)
System.Xml.cs (1)
102[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSeverityType))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
101[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSeverityType))]