42 references to XmlException
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
1465
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);
344
throw new
XmlException
(SR.Format(SR.RequiredRelationshipAttributeMissing, TargetAttributeName), null, reader.LineNumber, reader.LinePosition);
351
throw new
XmlException
(SR.Format(SR.RequiredRelationshipAttributeMissing, TypeAttributeName), null, reader.LineNumber, reader.LinePosition);
357
throw new
XmlException
(SR.Format(SR.RequiredRelationshipAttributeMissing, IdAttributeName), null, reader.LineNumber, reader.LinePosition);
376
throw new
XmlException
(SR.Format(SR.ElementIsNotEmptyElement, RelationshipTagName), null, reader.LineNumber, reader.LinePosition);
580
throw new
XmlException
(SR.Format(SR.InvalidXmlBaseAttributePresent, XmlBaseAttributeName), null, reader.LineNumber, reader.LinePosition);
586
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)
989
throw new
XmlException
(SR.TypesTagHasExtraAttributes, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
1026
throw new
XmlException
(SR.TypesXmlDoesNotMatchSchema, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
1032
throw new
XmlException
(SR.TypesElementExpected, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
1166
throw new
XmlException
(SR.DefaultTagDoesNotMatchSchema, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
1193
throw new
XmlException
(SR.OverrideTagDoesNotMatchSchema, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
1229
throw new
XmlException
(SR.Format(SR.ElementIsNotEmptyElement, elementName), null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
1281
throw new
XmlException
(SR.Format(SR.RequiredAttributeEmpty, tagName, attributeName), null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
1290
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.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)
380
XmlException xml =
new
(newMessage, se, pt.Y, pt.X);
387
XmlException xml =
new
(newMessage, tie.InnerException, pt.Y, pt.X);
403
XmlException xmlEx =
new
(e.Message, e, pt.Y, pt.X);
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
1465
throw new
XmlException
(string.Format(CultureInfo.InvariantCulture, message, args), null, info is null ? 1 : info.LineNumber,