46 references to XmlException
PresentationBuildTasks (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
1481
throw new
XmlException
(string.Format(CultureInfo.InvariantCulture, message, args), null, info is null ? 1 : info.LineNumber,
System.IO.Packaging (33)
System\IO\Packaging\InternalRelationshipCollection.cs (10)
255
throw new
XmlException
(SR.RelationshipsTagHasExtraAttributes, null, reader.LineNumber, reader.LinePosition);
294
throw new
XmlException
(SR.RelationshipTagDoesntMatchSchema, null, reader.LineNumber, reader.LinePosition);
299
throw new
XmlException
(SR.UnknownTagEncountered, null, reader.LineNumber, reader.LinePosition);
302
else throw new
XmlException
(SR.ExpectedRelationshipsElementTag, null, reader.LineNumber, reader.LinePosition);
340
throw new
XmlException
(SR.Format(SR.RequiredRelationshipAttributeMissing, TargetAttributeName), null, reader.LineNumber, reader.LinePosition);
347
throw new
XmlException
(SR.Format(SR.RequiredRelationshipAttributeMissing, TypeAttributeName), null, reader.LineNumber, reader.LinePosition);
353
throw new
XmlException
(SR.Format(SR.RequiredRelationshipAttributeMissing, IdAttributeName), null, reader.LineNumber, reader.LinePosition);
372
throw new
XmlException
(SR.Format(SR.ElementIsNotEmptyElement, RelationshipTagName), null, reader.LineNumber, reader.LinePosition);
570
throw new
XmlException
(SR.Format(SR.InvalidXmlBaseAttributePresent, XmlBaseAttributeName), null, reader.LineNumber, reader.LinePosition);
576
throw new
XmlException
(SR.Format(SR.InvalidValueForTheAttribute, attributeName), ex, reader.LineNumber, reader.LinePosition);
System\IO\Packaging\PartBasedPackageProperties.cs (14)
389
throw new
XmlException
(SR.Format(SR.DuplicateCorePropertyName, reader!.Name),
498
throw new
XmlException
(SR.CorePropertiesElementExpected,
505
throw new
XmlException
(SR.Format(SR.PropertyWrongNumbOfAttribsDefinedOn, reader.Name),
524
throw new
XmlException
(SR.PropertyStartTagExpected,
531
throw new
XmlException
(SR.NoStructuredContentInsideProperties,
544
throw new
XmlException
(
553
throw new
XmlException
(SR.UnknownNamespaceInCorePropertiesPart,
562
throw new
XmlException
(SR.Format(SR.PropertyWrongNumbOfAttribsDefinedOn, reader.Name),
577
throw new
XmlException
(SR.Format(SR.PropertyWrongNumbOfAttribsDefinedOn, reader.Name),
611
throw new
XmlException
(SR.Format(SR.UnknownDCDateTimeXsiType, reader.Name),
620
throw new
XmlException
(SR.Format(SR.UnknownDCDateTimeXsiType, reader.Name),
630
throw new
XmlException
(SR.Format(SR.UnknownDCDateTimeXsiType, reader.Name),
648
throw new
XmlException
(SR.NoStructuredContentInsideProperties,
670
throw new
XmlException
(SR.XsdDateTimeExpected,
System\IO\Packaging\XmlCompatibilityReader.cs (1)
1409
throw new
XmlException
(string.Format(CultureInfo.InvariantCulture, message, args), null, info == null ? 1 : info.LineNumber,
System\IO\Packaging\ZipPackage.cs (8)
991
throw new
XmlException
(SR.TypesTagHasExtraAttributes, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
1028
throw new
XmlException
(SR.TypesXmlDoesNotMatchSchema, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
1034
throw new
XmlException
(SR.TypesElementExpected, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
1168
throw new
XmlException
(SR.DefaultTagDoesNotMatchSchema, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
1195
throw new
XmlException
(SR.OverrideTagDoesNotMatchSchema, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
1231
throw new
XmlException
(SR.Format(SR.ElementIsNotEmptyElement, elementName), null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
1283
throw new
XmlException
(SR.Format(SR.RequiredAttributeEmpty, tagName, attributeName), null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
1292
throw new
XmlException
(SR.Format(SR.RequiredAttributeMissing, tagName, attributeName), null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
System.Private.Xml (2)
System\Xml\XmlException.cs (2)
90
public XmlException(string? message) :
this
(message, ((Exception?)null), 0, 0)
96
public XmlException(string? message, Exception? innerException) :
this
(message, innerException, 0, 0)
System.ServiceModel.Primitives (4)
Extensions\XmlReaderExtensions.cs (2)
16
throw new
XmlException
(SRP.Format(SRP.Xml_InvalidNodeType, reader.NodeType.ToString()), null, lineInfo?.LineNumber ?? 0, lineInfo?.LinePosition ?? 0);
27
throw new
XmlException
(SRP.Format(SRP.Xml_InvalidNodeType, reader.NodeType.ToString()), null, lineInfo?.LineNumber ?? 0, lineInfo?.LinePosition ?? 0);
SMDiagnostics\System\ServiceModel\Diagnostics\ExceptionUtility.cs (1)
75
return ThrowHelperError(new
XmlException
(
System\ServiceModel\EndpointAddress.cs (1)
924
return new
XmlException
(message, null, lineInfo.LineNumber, lineInfo.LinePosition);
System.Windows.Forms (5)
System\Resources\ResXDataNode.cs (2)
376
XmlException xml =
new
(newMessage, nse, dataNodeInfo.ReaderPosition.Y, dataNodeInfo.ReaderPosition.X);
392
new
XmlException
(newMessage, null, dataNodeInfo.ReaderPosition.Y, dataNodeInfo.ReaderPosition.X));
System\Resources\ResXResourceReader.cs (3)
377
XmlException xml =
new
(newMessage, se, pt.Y, pt.X);
384
XmlException xml =
new
(newMessage, tie.InnerException, pt.Y, pt.X);
400
XmlException xmlEx =
new
(e.Message, e, pt.Y, pt.X);
System.Xaml (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
1481
throw new
XmlException
(string.Format(CultureInfo.InvariantCulture, message, args), null, info is null ? 1 : info.LineNumber,