178 references to XmlSeverityType
System.Data.Entity (5)
System\Data\EntityModel\SchemaObjectModel\Schema.cs (3)
318if ( (reader.NodeType == XmlNodeType.Attribute) || (e.Severity == System.Xml.Schema.XmlSeverityType.Warning)) 327&& (e.Severity == System.Xml.Schema.XmlSeverityType.Warning)) 333if (e.Severity == System.Xml.Schema.XmlSeverityType.Warning)
System\Data\Mapping\StorageMappingItemLoader.cs (2)
3571if (args.Severity != XmlSeverityType.Warning) 3579if (args.Severity == XmlSeverityType.Warning)
System.Data.Services.Design (1)
System\Data\EntityModel\DataServiceBuildProvider.cs (1)
410if (e.Severity == XmlSeverityType.Error)
System.Web.Extensions (1)
Compilation\WCFModel\MapFileLoader.cs (1)
74bool isError = (e.Severity == XmlSeverityType.Error);
System.Web.Services (2)
System\Web\Services\Description\SchemaCompiler.cs (1)
159Warnings.Add(Res.GetString(args.Severity == XmlSeverityType.Error ? Res.SchemaValidationError : Res.SchemaValidationWarning, WarningDetails(args.Exception, args.Message)));
System\Web\Services\Description\WebReferenceOptions.cs (1)
156if (args.Severity != XmlSeverityType.Error)
System.Workflow.Runtime (1)
Tracking\TrackingProfileSerializer.cs (1)
851if (e.Severity == XmlSeverityType.Error)
System.Xml (167)
System\Xml\Core\IValidationEventHandling.cs (1)
18void SendEvent(Exception exception, XmlSeverityType severity);
System\Xml\Core\XmlTextReaderImpl.cs (5)
2327SendValidationEvent( XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, null, ps.LineNo, ps.LinePos ); 2530void SendValidationEvent( XmlSeverityType severity, string code, string arg, int lineNo, int linePos ) { 2534void SendValidationEvent(XmlSeverityType severity, XmlSchemaException exception) { 4082SendValidationEvent( XmlSeverityType.Error, Res.Sch_StandAloneNormalization, attr.GetNameWPrefix( nameTable ), attr.LineNo, attr.LinePos ); 4110SendValidationEvent( XmlSeverityType.Error, Res.Sch_UnSpecifiedDefaultAttributeInExternalStandalone, qname, curNode.LineNo, curNode.LinePos );
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
745SendValidationEvent( XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, null, ps.LineNo, ps.LinePos );
System\Xml\Core\XmlValidatingReaderImpl.cs (2)
56void IValidationEventHandling.SendEvent(Exception /*XmlSchemaException*/ exception, XmlSeverityType severity) { 60else if (reader.ValidationType != ValidationType.None && severity == XmlSeverityType.Error) {
System\Xml\Dom\DocumentSchemaValidator.cs (3)
691if (arg.Severity == XmlSeverityType.Error) { 697if (arg.Severity == XmlSeverityType.Error) { 706else if (arg.Severity == XmlSeverityType.Error) {
System\Xml\Schema\BaseProcessor.cs (13)
183SendValidationEvent(new XmlSchemaException(code, source), XmlSeverityType.Error); 187SendValidationEvent(new XmlSchemaException(code, msg, source), XmlSeverityType.Error); 191SendValidationEvent(new XmlSchemaException(code, new string[] { msg1, msg2 }, source), XmlSeverityType.Error); 195SendValidationEvent(new XmlSchemaException(code, args, innerException, source.SourceUri, source.LineNumber, source.LinePosition, source), XmlSeverityType.Error); 199SendValidationEvent(new XmlSchemaException(code, new string[] { msg1, msg2 }, sourceUri, lineNumber, linePosition), XmlSeverityType.Error); 202protected void SendValidationEvent(string code, XmlSchemaObject source, XmlSeverityType severity) { 207SendValidationEvent(e, XmlSeverityType.Error); 210protected void SendValidationEvent(string code, string msg, XmlSchemaObject source, XmlSeverityType severity) { 214protected void SendValidationEvent(XmlSchemaException e, XmlSeverityType severity) { 215if (severity == XmlSeverityType.Error) { 221else if (severity == XmlSeverityType.Error) { 226protected void SendValidationEventNoThrow(XmlSchemaException e, XmlSeverityType severity) { 227if (severity == XmlSeverityType.Error) {
System\Xml\Schema\BaseValidator.cs (6)
213SendValidationEvent(e, XmlSeverityType.Error); 216protected void SendValidationEvent(string code, string msg, XmlSeverityType severity) { 220protected void SendValidationEvent(string code, string[] args, XmlSeverityType severity) { 224protected void SendValidationEvent(XmlSchemaException e, XmlSeverityType severity) { 228else if (severity == XmlSeverityType.Error) { 268eventHandling.SendEvent(e, XmlSeverityType.Error);
System\Xml\Schema\DtdParser.cs (25)
418SendValidationEvent( XmlSeverityType.Error, new XmlSchemaException( Res.Sch_UndeclaredNotation, un.name, BaseUriStr, (int)un.lineNo, (int)un.linePos ) ); 552SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, string.Empty ); 606SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, string.Empty ); 734SendValidationEvent( XmlSeverityType.Error, Res.Sch_IdAttrDeclared, elementDecl.Name.ToString() ); 747SendValidationEvent( curPos - 8, XmlSeverityType.Error, Res.Sch_DupNotationAttribute, elementDecl.Name.ToString() ); // 8 == strlen("NOTATION") 753SendValidationEvent( curPos - 8, XmlSeverityType.Error, Res.Sch_NotationAttributeOnEmptyElement, elementDecl.Name.ToString() );// 8 == strlen("NOTATION") 775SendValidationEvent( XmlSeverityType.Error, new XmlSchemaException( Res.Xml_AttlistDuplNotationValue, notationName, BaseUriStr, (int)LineNo, (int)LinePos ) ); 814SendValidationEvent( XmlSeverityType.Error, new XmlSchemaException( Res.Xml_AttlistDuplEnumValue, nmtoken, BaseUriStr, (int)LineNo, (int)LinePos ) ); 856SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_AttListPresence, string.Empty ); 892SendValidationEvent( curPos - name.Name.Length, XmlSeverityType.Error, Res.Sch_DupElementDecl, GetNameString() ); 1166SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, string.Empty ); 1220SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, string.Empty ); 1239SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, string.Empty ); 1249SendValidationEvent( XmlSeverityType.Error, Res.Sch_DupElement, name.ToString() ); 1256SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, string.Empty ); 1377SendValidationEvent( curPos - notationName.Name.Length, XmlSeverityType.Error, Res.Sch_DupNotation, notationName.Name ); 1437SendValidationEvent( XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, null ); 1469SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, string.Empty ); 1491SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, string.Empty ); 1500SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, string.Empty ); 3186SendValidationEvent( curPos - entityName.Name.Length - 1, XmlSeverityType.Error, Res.Xml_UndeclaredParEntity, entityName.Name ); 3194SendValidationEvent( curPos - entityName.Name.Length - 1, XmlSeverityType.Error, Res.Xml_UndeclaredEntity, entityName.Name ); 3220private void SendValidationEvent( int pos, XmlSeverityType severity, string code, string arg ) { 3225private void SendValidationEvent( XmlSeverityType severity, string code, string arg ) { 3230private void SendValidationEvent( XmlSeverityType severity, XmlSchemaException e ) {
System\Xml\Schema\DtdParserAsync.cs (20)
61SendValidationEvent( XmlSeverityType.Error, new XmlSchemaException( Res.Sch_UndeclaredNotation, un.name, BaseUriStr, (int)un.lineNo, (int)un.linePos ) ); 197SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, string.Empty ); 251SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, string.Empty ); 379SendValidationEvent( XmlSeverityType.Error, Res.Sch_IdAttrDeclared, elementDecl.Name.ToString() ); 392SendValidationEvent( curPos - 8, XmlSeverityType.Error, Res.Sch_DupNotationAttribute, elementDecl.Name.ToString() ); // 8 == strlen("NOTATION") 398SendValidationEvent( curPos - 8, XmlSeverityType.Error, Res.Sch_NotationAttributeOnEmptyElement, elementDecl.Name.ToString() );// 8 == strlen("NOTATION") 420SendValidationEvent( XmlSeverityType.Error, new XmlSchemaException( Res.Xml_AttlistDuplNotationValue, notationName, BaseUriStr, (int)LineNo, (int)LinePos ) ); 459SendValidationEvent( XmlSeverityType.Error, new XmlSchemaException( Res.Xml_AttlistDuplEnumValue, nmtoken, BaseUriStr, (int)LineNo, (int)LinePos ) ); 501SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_AttListPresence, string.Empty ); 537SendValidationEvent( curPos - name.Name.Length, XmlSeverityType.Error, Res.Sch_DupElementDecl, GetNameString() ); 790SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, string.Empty ); 844SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, string.Empty ); 863SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, string.Empty ); 873SendValidationEvent( XmlSeverityType.Error, Res.Sch_DupElement, name.ToString() ); 880SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, string.Empty ); 1003SendValidationEvent( curPos - notationName.Name.Length, XmlSeverityType.Error, Res.Sch_DupNotation, notationName.Name ); 1048SendValidationEvent( XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, null ); 1080SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, string.Empty ); 1102SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, string.Empty ); 1111SendValidationEvent( curPos, XmlSeverityType.Error, Res.Sch_ParEntityRefNesting, string.Empty );
System\Xml\Schema\DtdValidator.cs (4)
89SendValidationEvent(Res.Xml_NoDTDPresent, this.name.ToString(), XmlSeverityType.Warning); 460eventHandling.SendEvent(e, XmlSeverityType.Error); 498eventHandling.SendEvent(e, XmlSeverityType.Error); 512eventHandling.SendEvent(e, XmlSeverityType.Error);
System\Xml\Schema\Preprocessor.cs (6)
294SendValidationEvent(new XmlSchemaException(Res.Sch_InvalidIncludeLocation, null, innerException, include.SourceUri, include.LineNumber, include.LinePosition, include), XmlSeverityType.Warning); 333SendValidationEvent(Res.Sch_InvalidIncludeLocation, include, XmlSeverityType.Warning); 349SendValidationEvent(new XmlSchemaException(Res.Sch_InvalidIncludeLocation, null, eInner, include.SourceUri, include.LineNumber, include.LinePosition, include), XmlSeverityType.Warning); 357SendValidationEvent(new XmlSchemaException(Res.Sch_InvalidIncludeLocation, null, innerException, include.SourceUri, include.LineNumber, include.LinePosition, include), XmlSeverityType.Warning); 723SendValidationEvent(Res.Sch_MultipleRedefine, redefine, XmlSeverityType.Warning); 1726SendValidationEvent(Res.Sch_UnrefNS, value.Namespace, xso, XmlSeverityType.Warning);
System\Xml\Schema\SchemaAttDef.cs (1)
205validationEventHandling.SendEvent(new XmlSchemaException(Res.Sch_XmlSpace, string.Empty), XmlSeverityType.Error);
System\Xml\Schema\SchemaCollectionCompiler.cs (6)
846SendValidationEvent(Res.Sch_EmptyChoice, choice, XmlSeverityType.Warning); 926SendValidationEvent(Res.Sch_EmptyChoice, groupRef, XmlSeverityType.Warning); 1006SendValidationEvent(Res.Sch_EmptyChoice, oldChoice, XmlSeverityType.Warning); 1435SendValidationEvent(Res.Sch_AttributeIgnored, attribute.QualifiedName.ToString(), attribute, XmlSeverityType.Warning); 1455SendValidationEvent(Res.Sch_AttributeIgnored, attributeValue.QualifiedName.ToString(), attributeValue, XmlSeverityType.Warning); 1984SendValidationEvent(Res.Sch_ComplexContentModel, complexType, XmlSeverityType.Warning);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (4)
207SendValidationEventNoThrow(new XmlSchemaException(Res.Sch_CannotLoadSchema, new string[] {schemaLocation, e.Message}, e.SourceUri, e.LineNumber, e.LinePosition), XmlSeverityType.Error); 210SendValidationEvent(Res.Sch_InvalidIncludeLocation, include, XmlSeverityType.Warning); 218SendValidationEvent(Res.Sch_InvalidIncludeLocation, include, XmlSeverityType.Warning); 1406SendValidationEvent(Res.Sch_UnrefNS,value.Namespace,xso, XmlSeverityType.Warning);
System\Xml\Schema\SchemaSetCompiler.cs (6)
939SendValidationEvent(Res.Sch_EmptyChoice, choice, XmlSeverityType.Warning); 1024SendValidationEvent(Res.Sch_EmptyChoice, groupRef, XmlSeverityType.Warning); 1095SendValidationEvent(Res.Sch_EmptyChoice, oldChoice, XmlSeverityType.Warning); 1714SendValidationEvent(Res.Sch_AttributeIgnored, attr.QualifiedName.ToString(), attr, XmlSeverityType.Warning); 1734SendValidationEvent(Res.Sch_AttributeIgnored, attribute.QualifiedName.ToString(), attribute, XmlSeverityType.Warning); 2339SendValidationEvent(Res.Sch_ComplexContentModel, complexType, XmlSeverityType.Warning);
System\Xml\Schema\ValidationEventArgs.cs (4)
16XmlSeverityType severity; 20severity = XmlSeverityType.Error; 23internal ValidationEventArgs( XmlSchemaException ex , XmlSeverityType severity ) : base() { 29public XmlSeverityType Severity {
System\Xml\Schema\XdrBuilder.cs (5)
502SendValidationEvent(Res.Sch_CannotLoadSchema, new string[] {uri, e.Message}, XmlSeverityType.Warning); 1566private void SendValidationEvent(string code, string[] args, XmlSeverityType severity) { 1575SendValidationEvent(new XmlSchemaException(code, msg, this._reader.BaseURI, this.positionInfo.LineNumber, this.positionInfo.LinePosition), XmlSeverityType.Error); 1578private void SendValidationEvent(XmlSchemaException e, XmlSeverityType severity) { 1583else if (severity == XmlSeverityType.Error) {
System\Xml\Schema\XdrValidator.cs (3)
293SendValidationEvent(Res.Sch_CannotLoadSchema, new string[] {uri, e.Message}, XmlSeverityType.Error); 296SendValidationEvent(Res.Sch_CannotLoadSchema, new string[] {uri, e.Message}, XmlSeverityType.Warning); 371SendValidationEvent(new XmlSchemaException(Res.Xml_NoValidation, string.Empty), XmlSeverityType.Warning);
System\Xml\Schema\XmlSchemaSet.cs (7)
477SendValidationEvent(new XmlSchemaException(Res.Sch_SchemaNotRemoved, string.Empty), XmlSeverityType.Warning); 550SendValidationEvent(new XmlSchemaException(Res.Sch_SchemaNotPreprocessed, string.Empty), XmlSeverityType.Error); 1067SendValidationEvent(e, XmlSeverityType.Error); 1200SendValidationEvent(new XmlSchemaException(Res.Sch_MismatchTargetNamespaceEx, new string[] { targetNamespace, schema.TargetNamespace }), XmlSeverityType.Error); 1328SendValidationEvent(new XmlSchemaException(code,qname.ToString()), XmlSeverityType.Error); 1353if (e.Severity == XmlSeverityType.Error) { 1358private void SendValidationEvent(XmlSchemaException e, XmlSeverityType severity) {
System\Xml\Schema\XmlSchemaValidator.cs (31)
311SendValidationEvent(Res.Sch_ComponentAlreadySeenForNS, tns, XmlSeverityType.Error); 328SendValidationEvent(Res.Sch_ComponentAlreadySeenForNS, tns, XmlSeverityType.Error); 510SendValidationEvent(Res.Sch_NoAttributeSchemaFound, attQName.ToString(), XmlSeverityType.Warning); 599SendValidationEvent(Res.Sch_NoAttributeSchemaFound, attQName.ToString(), XmlSeverityType.Warning); 1417XmlSeverityType severity = XmlSeverityType.Warning; 1419severity = XmlSeverityType.Error; 1472SendValidationEvent(Res.Sch_NoElementSchemaFound, QNameString(context.LocalName, context.Namespace), XmlSeverityType.Warning); 1564SendValidationEvent(Res.Sch_CannotLoadSchema, new string[] {uri, e.Message}, e, XmlSeverityType.Warning); 1697SendValidationEvent(new XmlSchemaValidationException(Res.Sch_UndeclaredId, next.Id, this.sourceUriString, next.LineNo, next.LinePos), XmlSeverityType.Error); 2118SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_InvalidElementContentComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name), Res.GetString(Res.Sch_ComplexContentModel) }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2121SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_InvalidElementContent, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name) }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2127SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_InvalidElementContentExpectingComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name), PrintExpectedElements(names, getParticles), Res.GetString(Res.Sch_ComplexContentModel) }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2130SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_InvalidElementContentExpecting, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name), PrintExpectedElements(names, getParticles) }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2136SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_InvalidElementInEmptyEx, new string[] { QNameString(context.LocalName, context.Namespace), name.ToString() }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2139SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_InvalidElementInTextOnlyEx, new string[] { QNameString(context.LocalName, context.Namespace), name.ToString() }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2159SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_IncompleteContentComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), Res.GetString(Res.Sch_ComplexContentModel) }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2161SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_IncompleteContent, BuildElementName(context.LocalName, context.Namespace), sourceUri, lineNo, linePos), XmlSeverityType.Error); 2166SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_IncompleteContentExpectingComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), PrintExpectedElements(names, getParticles), Res.GetString(Res.Sch_ComplexContentModel) }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2169SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(Res.Sch_IncompleteContentExpecting, new string[] { BuildElementName(context.LocalName, context.Namespace), PrintExpectedElements(names, getParticles) }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2343private void SendValidationEvent(string code, string[] args, Exception innerException, XmlSeverityType severity) { 2344if (severity != XmlSeverityType.Warning || ReportValidationWarnings) { 2350SendValidationEvent(new XmlSchemaValidationException(code, args, innerException, sourceUriString, positionInfo.LineNumber, positionInfo.LinePosition), XmlSeverityType.Error); 2354SendValidationEvent(e, XmlSeverityType.Error); 2358SendValidationEvent(new XmlSchemaValidationException(e.GetRes,e.Args,e.SourceUri,e.LineNumber,e.LinePosition), XmlSeverityType.Error); 2361private void SendValidationEvent(string code, string msg, XmlSeverityType severity) { 2362if (severity != XmlSeverityType.Warning || ReportValidationWarnings) { 2367private void SendValidationEvent(XmlSchemaValidationException e, XmlSeverityType severity) { 2369if (severity == XmlSeverityType.Error) { 2386internal static void SendValidationEvent(ValidationEventHandler eventHandler, object sender, XmlSchemaValidationException e, XmlSeverityType severity) { 2390else if (severity == XmlSeverityType.Error) {
System\Xml\Schema\XsdBuilder.cs (5)
724SendValidationEvent(Res.Sch_InvalidXsdAttributeDatatypeValue, new string[] {name, e.Message},XmlSeverityType.Error); 2332private void SendValidationEvent(string code, string[] args, XmlSeverityType severity) { 2336private void SendValidationEvent(XmlSchemaException e, XmlSeverityType severity) { 2342else if (severity == XmlSeverityType.Error) { 2348SendValidationEvent(e, XmlSeverityType.Error);
System\Xml\Schema\XsdValidator.cs (5)
146SendValidationEvent(Res.Sch_CannotLoadSchema, new string[] {BaseUri.AbsoluteUri, e.Message}, XmlSeverityType.Error); 204SendValidationEvent(Res.Sch_NoElementSchemaFound, XmlSchemaValidator.QNameString(context.LocalName, context.Namespace), XmlSeverityType.Warning); 430SendValidationEvent(Res.Sch_NoAttributeSchemaFound, attQName.ToString(), XmlSeverityType.Warning); 506SendValidationEvent(Res.Sch_CannotLoadSchema, new string[] {uri, e.Message}, XmlSeverityType.Error); 510SendValidationEvent(Res.Sch_CannotLoadSchema, new string[] {uri, e.Message}, XmlSeverityType.Warning);
System\Xml\Serialization\Mappings.cs (1)
1070if (args.Severity == XmlSeverityType.Error)
System\Xml\Serialization\XmlReflectionImporter.cs (1)
512if (args.Severity == XmlSeverityType.Error)
System\Xml\XPath\XPathNavigator.cs (2)
963if ( args.Severity == XmlSeverityType.Error ) 972else if (exception != null && args.Severity == XmlSeverityType.Error) {
System.Xml.Linq (1)
System\Xml\Linq\XNodeValidator.cs (1)
305else if (e.Severity == XmlSeverityType.Error) {