144 references to DtdProcessing
BoundTreeGenerator (1)
Program.cs (1)
51using (var reader = XmlReader.Create(infilename, new XmlReaderSettings { DtdProcessing = DtdProcessing.Prohibit }))
CSharpSyntaxGenerator (1)
SourceGenerator.cs (1)
75var reader = XmlReader.Create(new SourceTextReader(inputText), new XmlReaderSettings { DtdProcessing = DtdProcessing.Prohibit });
IOperationGenerator (1)
Program.cs (1)
25using (var reader = XmlReader.Create(inFileName, new XmlReaderSettings { DtdProcessing = DtdProcessing.Prohibit }))
Microsoft.Build (7)
BackEnd\Components\SdkResolution\SdkResolverManifest.cs (1)
69DtdProcessing = DtdProcessing.Ignore,
Construction\ProjectRootElement.cs (1)
192var xrs = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore };
Construction\Solution\ProjectInSolution.cs (1)
302var xrSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true };
Construction\Solution\SolutionFile.cs (1)
1148var readerSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true };
Instance\ProjectInstance.cs (1)
2986DtdProcessing = DtdProcessing.Ignore
SolutionConfiguration.cs (1)
117var settings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore };
Xml\XmlReaderExtension.cs (1)
93XmlReader reader = new XmlTextReader(uri, input) { DtdProcessing = DtdProcessing.Ignore };
Microsoft.Build.BuildCheck.UnitTests (1)
TestAssemblyInfo.cs (1)
114var xrs = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true, IgnoreWhitespace = true };
Microsoft.Build.CommandLine.UnitTests (1)
TestAssemblyInfo.cs (1)
114var xrs = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true, IgnoreWhitespace = true };
Microsoft.Build.Engine.OM.UnitTests (1)
TestAssemblyInfo.cs (1)
114var xrs = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true, IgnoreWhitespace = true };
Microsoft.Build.Engine.UnitTests (1)
TestAssemblyInfo.cs (1)
114var xrs = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true, IgnoreWhitespace = true };
Microsoft.Build.Framework.UnitTests (1)
TestAssemblyInfo.cs (1)
114var xrs = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true, IgnoreWhitespace = true };
Microsoft.Build.Tasks.Core (32)
AddToWin32Manifest.cs (1)
160using (XmlReader xr = XmlReader.Create(stream, new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true }))
AppConfig\AppConfig.cs (1)
28var readerSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true };
AssemblyDependency\GenerateBindingRedirects.cs (1)
339var xrs = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true, IgnoreWhitespace = true };
BootstrapperUtil\BootstrapperBuilder.cs (2)
542var xrs = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true }; 833xmlReaderSettings.DtdProcessing = DtdProcessing.Ignore;
GenerateApplicationManifest.cs (1)
455var xrSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore };
GenerateResource.cs (2)
979reader.DtdProcessing = DtdProcessing.Ignore; 1767XmlReaderSettings readerSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true };
ManifestUtil\ApplicationManifest.cs (1)
530var xrs = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true };
ManifestUtil\AssemblyIdentity.cs (2)
196var readerSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true }; 214var xrSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore };
ManifestUtil\DeployManifest.cs (1)
216var xrSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true };
ManifestUtil\Manifest.cs (1)
379var xrSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true };
ManifestUtil\ManifestFormatter.cs (1)
22DtdProcessing = DtdProcessing.Ignore,
ManifestUtil\ManifestReader.cs (3)
62var xrSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore }; 231var settings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = false }; 245var xrSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = false };
ManifestUtil\mansign2.cs (1)
620settings.DtdProcessing = DtdProcessing.Parse;
ManifestUtil\SecurityUtil.cs (2)
216DtdProcessing = DtdProcessing.Ignore, 697var xrSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true };
ManifestUtil\TrustInfo.cs (2)
455var xrSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore }; 705var xrSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore };
RedistList.cs (1)
662var readerSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true };
SolutionConfiguration.cs (1)
117var settings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore };
XamlTaskFactory\RelationsParser.cs (2)
188XmlReaderSettings settings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true }; 216XmlReaderSettings settings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore };
XmlPeek.cs (3)
178var settings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore }; 286DtdProcessing = prohibitDtd ? DtdProcessing.Prohibit : DtdProcessing.Ignore
XmlPoke.cs (2)
68XmlReaderSettings xrs = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore }; 164var settings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore };
XslTransformation.cs (1)
216XmlReaderSettings settings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore };
Microsoft.Build.Tasks.UnitTests (1)
TestAssemblyInfo.cs (1)
114var xrs = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true, IgnoreWhitespace = true };
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
724XmlReaderSettings readerSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore };
Microsoft.Build.Utilities.Core (3)
PlatformManifest.cs (1)
99XmlReaderSettings readerSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true };
SDKManifest.cs (1)
318XmlReaderSettings readerSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true };
ToolLocationHelper.cs (1)
3131XmlReaderSettings readerSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true };
Microsoft.Build.Utilities.UnitTests (1)
TestAssemblyInfo.cs (1)
114var xrs = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore, CloseInput = true, IgnoreWhitespace = true };
Microsoft.CodeAnalysis (4)
Desktop\AssemblyPortabilityPolicy.cs (1)
56DtdProcessing = DtdProcessing.Prohibit,
DocumentationComments\DocumentationCommentIncludeCache.cs (1)
43DtdProcessing = DtdProcessing.Prohibit
DocumentationComments\XmlDocumentationCommentTextReader.cs (1)
34private static readonly XmlReaderSettings s_xmlSettings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Prohibit };
RuleSet\RuleSetProcessor.cs (1)
282xmlReaderSettings.DtdProcessing = DtdProcessing.Prohibit;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\CSharpPDBTestBase.cs (1)
49using (var reader = new XmlTextReader(new StringReader(pdb)) { DtdProcessing = DtdProcessing.Prohibit })
Microsoft.CodeAnalysis.Features (1)
SymbolSearch\Windows\SymbolSearchUpdateEngine.Update.cs (1)
632DtdProcessing = DtdProcessing.Prohibit,
Microsoft.CodeAnalysis.Workspaces (2)
Shared\Utilities\XmlFragmentParser.cs (1)
54DtdProcessing = DtdProcessing.Prohibit,
Utilities\Documentation\XmlDocumentationProvider.cs (1)
97DtdProcessing = DtdProcessing.Prohibit,
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\BuildHostProcessManager.cs (1)
286DtdProcessing = DtdProcessing.Prohibit,
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
23DtdProcessing = DtdProcessing.Prohibit,
Microsoft.Extensions.Configuration.Xml (1)
XmlStreamConfigurationProvider.cs (1)
44DtdProcessing = DtdProcessing.Prohibit,
Microsoft.VisualStudio.LanguageServices (1)
ColorSchemes\ColorSchemeApplier.ColorSchemeReader.cs (1)
21private static readonly XmlReaderSettings s_xmlSettings = new() { DtdProcessing = DtdProcessing.Prohibit };
netstandard (1)
netstandard.cs (1)
2249[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.DtdProcessing))]
PresentationFramework (1)
System\Windows\Markup\XamlReader.cs (1)
295reader.DtdProcessing = DtdProcessing.Prohibit;
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\SchemaExporter.cs (1)
69XmlSchema? schema = XmlSchema.Read(new XmlTextReader(reader) { DtdProcessing = DtdProcessing.Prohibit }, null);
System\Runtime\Serialization\SchemaImporter.cs (1)
53XmlSchema? schema = XmlSchema.Read(new XmlTextReader(reader) { DtdProcessing = DtdProcessing.Prohibit }, null);
System.Private.Xml (65)
System\Xml\BinaryXml\XmlBinaryReader.cs (4)
315private readonly DtdProcessing _dtdProcessing; 2852if (_dtdProcessing == DtdProcessing.Ignore) 3109if (_dtdProcessing == DtdProcessing.Prohibit) 3210settings.DtdProcessing = DtdProcessing.Prohibit;
System\Xml\Core\XmlCharCheckingReader.cs (7)
39private readonly DtdProcessing _dtdProcessing; // -1 means do nothing 48internal XmlCharCheckingReader(XmlReader reader, bool checkCharacters, bool ignoreWhitespace, bool ignoreComments, bool ignorePis, DtdProcessing dtdProcessing) 217if (_dtdProcessing == DtdProcessing.Prohibit) 221else if (_dtdProcessing == DtdProcessing.Ignore) 293if (_dtdProcessing == DtdProcessing.Prohibit) 297else if (_dtdProcessing == DtdProcessing.Ignore) 640internal XmlCharCheckingReaderWithNS(XmlReader reader, IXmlNamespaceResolver readerAsNSResolver, bool checkCharacters, bool ignoreWhitespace, bool ignoreComments, bool ignorePis, DtdProcessing dtdProcessing)
System\Xml\Core\XmlCharCheckingReaderAsync.cs (4)
79if (_dtdProcessing == DtdProcessing.Prohibit) 83else if (_dtdProcessing == DtdProcessing.Ignore) 155if (_dtdProcessing == DtdProcessing.Prohibit) 159else if (_dtdProcessing == DtdProcessing.Ignore)
System\Xml\Core\XmlReaderSettings.cs (19)
28private DtdProcessing _dtdProcessing; 201get => _dtdProcessing == DtdProcessing.Prohibit; 205_dtdProcessing = value ? DtdProcessing.Prohibit : DtdProcessing.Parse; 209public DtdProcessing DtdProcessing 216if ((uint)value > (uint)DtdProcessing.Parse) 418_dtdProcessing = DtdProcessing.Prohibit; 514DtdProcessing dtdProc = (DtdProcessing)(-1); 564DtdProcessing baseDtdProcessing = DtdProcessing.Parse; 570if ((_dtdProcessing == DtdProcessing.Prohibit && baseDtdProcessing != DtdProcessing.Prohibit) || 571(_dtdProcessing == DtdProcessing.Ignore && baseDtdProcessing == DtdProcessing.Parse)) 605if ((_dtdProcessing == DtdProcessing.Prohibit && baseReaderSettings.DtdProcessing != DtdProcessing.Prohibit) || 606(_dtdProcessing == DtdProcessing.Ignore && baseReaderSettings.DtdProcessing == DtdProcessing.Parse))
System\Xml\Core\XmlTextReader.cs (4)
391get { return _impl.DtdProcessing == DtdProcessing.Prohibit; } 392set { _impl.DtdProcessing = value ? DtdProcessing.Prohibit : DtdProcessing.Parse; } 395public DtdProcessing DtdProcessing
System\Xml\Core\XmlTextReaderImpl.cs (12)
186private DtdProcessing _dtdProcessing = DtdProcessing.Parse; 2062internal DtdProcessing DtdProcessing 2073ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)value, (uint)DtdProcessing.Parse, nameof(value)); 3038case DtdProcessing.Prohibit: 3041case DtdProcessing.Ignore: 3044case DtdProcessing.Parse: 6028if (_dtdInfo == null && _fragmentParserContext != null && _fragmentParserContext.HasDtdInfo && _dtdProcessing == DtdProcessing.Parse) 6667if (_dtdProcessing == DtdProcessing.Prohibit) 6706if (_dtdProcessing == DtdProcessing.Parse) 6719Debug.Assert(_dtdProcessing == DtdProcessing.Ignore); 7939Throw(_dtdProcessing == DtdProcessing.Ignore ? SR.Xml_CannotResolveEntityDtdIgnored : SR.Xml_CannotResolveEntity, entityName);
System\Xml\Core\XmlTextReaderImplAsync.cs (8)
981case DtdProcessing.Prohibit: 984case DtdProcessing.Ignore: 987case DtdProcessing.Parse: 3813if (_dtdInfo == null && _fragmentParserContext != null && _fragmentParserContext.HasDtdInfo && _dtdProcessing == DtdProcessing.Parse) 4411if (_dtdProcessing == DtdProcessing.Prohibit) 4447if (_dtdProcessing == DtdProcessing.Parse) 4460Debug.Assert(_dtdProcessing == DtdProcessing.Ignore); 5148Throw(_dtdProcessing == DtdProcessing.Ignore ? SR.Xml_CannotResolveEntityDtdIgnored : SR.Xml_CannotResolveEntity, entityName);
System\Xml\Schema\Preprocessor.cs (1)
209get => _readerSettings ??= new XmlReaderSettings() { DtdProcessing = DtdProcessing.Prohibit };
System\Xml\Schema\XmlSchemaSet.cs (2)
114_readerSettings.DtdProcessing = DtdProcessing.Prohibit; 283DtdProcessing dtdProcessing = _readerSettings.DtdProcessing;
System\Xml\Xsl\QueryReaderSettings.cs (4)
31_xmlReaderSettings.DtdProcessing = DtdProcessing.Prohibit; 71_prohibitDtd = (impl.DtdProcessing == DtdProcessing.Prohibit); 100readerImpl.DtdProcessing = _prohibitDtd ? DtdProcessing.Prohibit : DtdProcessing.Parse;
System.Private.Xml.Linq (1)
System\Xml\Linq\XNode.cs (1)
678rs.DtdProcessing = (DtdProcessing)2;
System.Security.Cryptography.Xml (3)
System\Security\Cryptography\Xml\Utils.cs (3)
191settings.DtdProcessing = DtdProcessing.Parse; 212settings.DtdProcessing = DtdProcessing.Parse; 235settings.DtdProcessing = DtdProcessing.Parse;
System.Xaml (3)
System\Xaml\InfosetObjects\XamlXmlReader.cs (3)
90return XmlReader.Create(fileName, new XmlReaderSettings { CloseInput = closeInput, DtdProcessing = DtdProcessing.Prohibit }); 124return XmlReader.Create(stream, new XmlReaderSettings { CloseInput = closeInput, DtdProcessing = DtdProcessing.Prohibit }); 158return XmlReader.Create(textReader, new XmlReaderSettings { CloseInput = closeInput, DtdProcessing = DtdProcessing.Prohibit });
System.Xml (1)
System.Xml.cs (1)
5[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.DtdProcessing))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
4[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.DtdProcessing))]
VisualBasicSyntaxGenerator (1)
XML\ReadTree.vb (1)
80readerSettings.DtdProcessing = DtdProcessing.Prohibit