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