6 types derived from XmlDocument
Microsoft.Build (1)
ElementLocation\XmlDocumentWithLocation.cs (1)
25internal class XmlDocumentWithLocation : XmlDocument
System.Configuration.ConfigurationManager (2)
System\Configuration\ConfigXmlDocument.cs (1)
17public sealed class ConfigXmlDocument : XmlDocument, IConfigErrorInfo
System\Configuration\ErrorInfoXmlDocument.cs (1)
16internal sealed class ErrorInfoXmlDocument : XmlDocument, IConfigErrorInfo
System.Data.Common (1)
System\Xml\XmlDataDocument.cs (1)
22public class XmlDataDocument : XmlDocument
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\CanonicalXmlDocument.cs (1)
11internal sealed class CanonicalXmlDocument : XmlDocument, ICanonicalizableNode
System\Security\Cryptography\Xml\MyXmlDocument.cs (1)
8internal sealed class MyXmlDocument : XmlDocument
159 instantiations of XmlDocument
ILLink.Tasks (1)
CreateRuntimeRootDescriptorFile.cs (1)
303 XmlDocument doc = new XmlDocument ();
Interop.FunctionalTests (1)
H2SpecCommands.cs (1)
270var xml = new XmlDocument();
Microsoft.AspNetCore.AzureAppServices.SiteExtension.Tests (1)
TransformTest.cs (1)
87var doc = new XmlDocument();
Microsoft.AspNetCore.DataProtection (2)
XmlEncryption\CertificateXmlEncryptor.cs (1)
88var xmlDocument = new XmlDocument();
XmlEncryption\EncryptedXmlDecryptor.cs (1)
68var xmlDocument = new XmlDocument();
Microsoft.Build (4)
Construction\Solution\ProjectInSolution.cs (1)
303var projectDocument = new XmlDocument();
Construction\Solution\SolutionFile.cs (1)
1120var etpProjectDocument = new XmlDocument();
Evaluation\ProjectRootElementCache.cs (1)
208XmlDocument document = new XmlDocument();
SolutionConfiguration.cs (1)
116doc = new XmlDocument();
Microsoft.Build.BuildCheck.UnitTests (1)
EndToEndTests.cs (1)
578var doc = new XmlDocument();
Microsoft.Build.Engine.UnitTests (6)
BackEnd\BatchingEngine_Tests.cs (1)
67XmlAttribute tempXmlAttribute = (new XmlDocument()).CreateAttribute("attrib");
Evaluation\Expander_Tests.cs (5)
1507XmlAttribute xmlattribute = (new XmlDocument()).CreateAttribute("dummy"); 1533XmlAttribute xmlattribute = (new XmlDocument()).CreateAttribute("dummy"); 1555XmlAttribute xmlattribute = (new XmlDocument()).CreateAttribute("dummy"); 1604XmlAttribute xmlattribute = (new XmlDocument()).CreateAttribute("dummy"); 1636XmlAttribute xmlattribute = (new XmlDocument()).CreateAttribute("dummy");
Microsoft.Build.Tasks.Core (37)
AddToWin32Manifest.cs (1)
158XmlDocument document = new XmlDocument();
BootstrapperUtil\BootstrapperBuilder.cs (3)
539var resourceDoc = new XmlDocument(); 590_document = new XmlDocument(); 849xmlDocument = new XmlDocument(_document.NameTable);
CodeTaskFactory.cs (1)
491var document = new XmlDocument();
GenerateApplicationManifest.cs (1)
454var document = new XmlDocument();
ManifestUtil\ApplicationManifest.cs (1)
529var document = new XmlDocument();
ManifestUtil\AssemblyIdentity.cs (2)
193var document = new XmlDocument(); 213var document = new XmlDocument();
ManifestUtil\DeployManifest.cs (1)
215var doc = new XmlDocument();
ManifestUtil\Manifest.cs (1)
378var document = new XmlDocument();
ManifestUtil\ManifestReader.cs (1)
61var document = new XmlDocument();
ManifestUtil\mansign2.cs (2)
613XmlDocument normalizedDom = new XmlDocument(); 694XmlDocument licenseDom = new XmlDocument();
ManifestUtil\SecurityUtil.cs (9)
212var doc = new XmlDocument(); 265var doc = new XmlDocument(); 291var doc = new XmlDocument(); 311var doc = new XmlDocument(); 375var document = new XmlDocument(); 398var psDocument = new XmlDocument(); 407XmlDocument inputDocument = new XmlDocument(); 412var outputDocument = new XmlDocument(); 696var doc = new XmlDocument { PreserveWhitespace = true };
ManifestUtil\TrustInfo.cs (7)
159XmlDocument document = new XmlDocument(); 180_inputTrustInfoDocument = new XmlDocument(); 454var document = new XmlDocument(); 493_inputTrustInfoDocument = new XmlDocument(); 561var outputDocument = new XmlDocument(); 570var privilegeDocument = new XmlDocument(); 704var document = new XmlDocument();
SolutionConfiguration.cs (1)
116doc = new XmlDocument();
XamlTaskFactory\RelationsParser.cs (2)
187var xmlDocument = new XmlDocument(); 215var xmlDocument = new XmlDocument();
XmlPeek.cs (1)
175var doc = new XmlDocument();
XmlPoke.cs (2)
62XmlDocument xmlDoc = new XmlDocument(); 161var doc = new XmlDocument();
XslTransformation.cs (1)
213XmlDocument doc = new XmlDocument();
Microsoft.Build.Tasks.UnitTests (6)
AddToWin32Manifest_Tests.cs (4)
61XmlDocument expectedDoc = new XmlDocument(); 62XmlDocument actualDoc = new XmlDocument(); 125XmlDocument expectedDoc = new XmlDocument(); 126XmlDocument actualDoc = new XmlDocument();
XmlPoke_Tests.cs (2)
211XmlDocument xmlDocument = new XmlDocument(); 365XmlDocument xmlDocument = new XmlDocument();
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
616XmlDocument xmldoc = new XmlDocument();
Microsoft.Build.Utilities.Core (2)
PlatformManifest.cs (1)
98XmlDocument doc = new XmlDocument();
SDKManifest.cs (1)
317XmlDocument doc = new XmlDocument();
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\CSharpPDBTestBase.cs (1)
48var doc = new XmlDocument() { XmlResolver = null };
Microsoft.DotNet.Open.Api.Tools.Tests (3)
OpenApiAddFileTests.cs (2)
93var projXml = new XmlDocument(); 118var projXml = new XmlDocument();
OpenApiAddProjectTests.cs (1)
75var projXml = new XmlDocument();
Microsoft.DotNet.SignCheckLibrary (1)
Verification\XmlVerifier.cs (1)
40var xmlDoc = new XmlDocument()
Microsoft.Extensions.Configuration.Xml (1)
XmlDocumentDecryptor.cs (1)
71var document = new XmlDocument();
Microsoft.Gen.Metrics (1)
Parser.cs (1)
346var xmlDoc = new XmlDocument();
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
346var xmlDoc = new XmlDocument();
Microsoft.ML.NugetPackageVersionUpdater (1)
Program.cs (1)
59var csprojDoc = new XmlDocument();
Microsoft.Web.Xdt.Extensions.Tests (4)
InsertOrAppendAttributeTests.cs (4)
17var doc = new XmlDocument(); 41var doc = new XmlDocument(); 65var doc = new XmlDocument(); 89var doc = new XmlDocument();
PresentationBuildTasks (3)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (2)
124xmlProjectDoc = new XmlDocument( ); 253xmlProjectDoc = new XmlDocument( );
Microsoft\Build\Tasks\Windows\UpdateManifestForBrowserApplication.cs (1)
94manifestDocument = new XmlDocument();
PresentationFramework (12)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
488XmlDocument xmlDoc = new XmlDocument(); 498XmlDocument xmlDoc = new XmlDocument();
MS\Internal\Globalization\BamlTreeMap.cs (1)
367doc = new XmlDocument();
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
436XmlDocument doc = new XmlDocument();
MS\Internal\IO\Packaging\XamlFilter.cs (1)
791XmlDocument fixedPageTree = new XmlDocument();
System\Windows\Annotations\Annotation.cs (1)
282doc = new XmlDocument();
System\Windows\Annotations\AnnotationHelper.cs (1)
1039XmlDocument doc = new XmlDocument();
System\Windows\Annotations\AnnotationResource.cs (1)
171XmlDocument doc = new XmlDocument();
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
738_document = new XmlDocument();
System\Windows\Data\XmlDataProvider.cs (2)
478doc = new XmlDocument(); 564XmlDocument doc = new XmlDocument();
System\Windows\Documents\FixedTextBuilder.cs (1)
1390_dumpDoc = new XmlDocument();
ReachFramework (2)
PrintConfig\PrtTicket_Public.cs (2)
46_xmlDoc = new XmlDocument(); 77_xmlDoc = new XmlDocument();
System.Configuration.ConfigurationManager (7)
System\Configuration\DpapiProtectedConfigurationProvider.cs (2)
39XmlDocument xmlDocument = new XmlDocument(); 53XmlDocument xmlDocument = new XmlDocument();
System\Configuration\LocalFileSettingsProvider.cs (2)
438XmlDocument doc = new XmlDocument(); 517document = new XmlDocument();
System\Configuration\ProtectedConfigurationSection.cs (2)
88XmlDocument doc = new XmlDocument(); 106XmlDocument xmlDocument = new XmlDocument { PreserveWhitespace = true };
System\Configuration\SettingValueElement.cs (1)
11private static readonly XmlDocument _document = new XmlDocument();
System.Data.Common (15)
System\Data\DataSet.cs (6)
1589XmlDocument xdoc = new XmlDocument(); 1687XmlDocument xdoc = new XmlDocument(); // we may need this to infer the schema 1858XmlDocument xdoc = new XmlDocument(); // we may need this to infer the schema 2108XmlDocument xdoc = new XmlDocument(); // we may need this to infer the schema 2495XmlDocument xdoc = new XmlDocument(); 2623XmlDocument xdoc = new XmlDocument(); // we may need this to infer the schema
System\Data\DataTable.cs (4)
5776XmlDocument xdoc = new XmlDocument(); // we may need this to infer the schema 6014XmlDocument xdoc = new XmlDocument(); // we may need this to infer the schema 6287XmlDocument xdoc = new XmlDocument(); // we may need this to infer the schema 6346XmlDocument xdoc = new XmlDocument();
System\Data\ProviderBase\SchemaMapping.cs (1)
348System.Xml.XmlDocument document = new System.Xml.XmlDocument();
System\Data\xmlsaver.cs (4)
1112XmlDocument doc = new XmlDocument(); 1142XmlDocument doc = new XmlDocument(); 2279_doc = new XmlDocument(); 2292_doc = new XmlDocument();
System.Private.DataContractSerialization (5)
System\Runtime\Serialization\SchemaExporter.cs (2)
37private XmlDocument XmlDoc => _xmlDoc ??= new XmlDocument(); 663providerXsdType.Annotation = GetSchemaAnnotation(ExportActualType(xmlName, new XmlDocument()));
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (2)
32private XmlDocument Document => _xmlDocument ??= new XmlDocument(); 524XmlDocument xmlDoc = new XmlDocument();
System\Runtime\Serialization\XmlSerializableServices.cs (1)
16XmlDocument doc = new XmlDocument();
System.Private.Xml (7)
System\Xml\Dom\XmlDocument.cs (1)
1152return new XmlDocument();
System\Xml\Dom\XmlImplementation.cs (1)
37return new XmlDocument(this);
System\Xml\Schema\Parser.cs (1)
46_dummyDocument = new XmlDocument();
System\Xml\Schema\XmlSchema.cs (1)
419internal XmlDocument Document => _document ??= new XmlDocument();
System\Xml\Serialization\XmlSchemaExporter.cs (1)
1190XmlDocument d = new XmlDocument();
System\Xml\Serialization\XmlSerializationReader.cs (2)
175_d = new XmlDocument(_r.NameTable); 877XmlDocument doc = new XmlDocument();
System.Security.Cryptography.Xml (29)
System\Security\Cryptography\Xml\CipherData.cs (1)
72XmlDocument document = new XmlDocument();
System\Security\Cryptography\Xml\CipherReference.cs (1)
47XmlDocument document = new XmlDocument();
System\Security\Cryptography\Xml\DataObject.cs (1)
111XmlDocument document = new XmlDocument();
System\Security\Cryptography\Xml\DSAKeyValue.cs (1)
69XmlDocument xmlDocument = new XmlDocument();
System\Security\Cryptography\Xml\EncryptedData.cs (1)
75XmlDocument document = new XmlDocument();
System\Security\Cryptography\Xml\EncryptedKey.cs (1)
150XmlDocument document = new XmlDocument();
System\Security\Cryptography\Xml\EncryptedReference.cs (1)
83XmlDocument document = new XmlDocument();
System\Security\Cryptography\Xml\EncryptedXml.cs (2)
81public EncryptedXml() : this(new XmlDocument()) { } 831XmlDocument importDocument = new XmlDocument();
System\Security\Cryptography\Xml\EncryptionMethod.cs (1)
61XmlDocument document = new XmlDocument();
System\Security\Cryptography\Xml\EncryptionProperty.cs (1)
72XmlDocument document = new XmlDocument();
System\Security\Cryptography\Xml\KeyInfo.cs (1)
36XmlDocument xmlDocument = new XmlDocument();
System\Security\Cryptography\Xml\KeyInfoName.cs (1)
39XmlDocument xmlDocument = new XmlDocument();
System\Security\Cryptography\Xml\KeyInfoNode.cs (1)
40XmlDocument xmlDocument = new XmlDocument();
System\Security\Cryptography\Xml\KeyInfoRetrievalMethod.cs (1)
48XmlDocument xmlDocument = new XmlDocument();
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (1)
216XmlDocument xmlDocument = new XmlDocument();
System\Security\Cryptography\Xml\Reference.cs (1)
162XmlDocument document = new XmlDocument();
System\Security\Cryptography\Xml\RSAKeyValue.cs (1)
64XmlDocument xmlDocument = new XmlDocument();
System\Security\Cryptography\Xml\Signature.cs (1)
87XmlDocument document = new XmlDocument();
System\Security\Cryptography\Xml\SignedInfo.cs (1)
159XmlDocument document = new XmlDocument();
System\Security\Cryptography\Xml\Transform.cs (1)
118XmlDocument document = new XmlDocument();
System\Security\Cryptography\Xml\TransformChain.cs (1)
84XmlDocument doc = new XmlDocument();
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (2)
124XmlDocument document = new XmlDocument(); 151XmlDocument document = new XmlDocument();
System\Security\Cryptography\Xml\XmlDsigEnvelopedSignatureTransform.cs (1)
80XmlDocument doc = new XmlDocument();
System\Security\Cryptography\Xml\XmlDsigExcC14NTransform.cs (1)
98XmlDocument document = new XmlDocument();
System\Security\Cryptography\Xml\XmlDsigXPathTransform.cs (2)
88XmlDocument document = new XmlDocument(); 138_document = new XmlDocument();
System\Security\Cryptography\Xml\XmlLicenseTransform.cs (1)
135_license = new XmlDocument();
System.ServiceModel.Federation.Tests (2)
WSTrustChannelSecurityTokenProviderTest.cs (2)
33var additionalElements= new Collection<XmlElement>() { new XmlDocument().CreateElement(eln1), new XmlDocument().CreateElement(eln2) };
System.Windows.Forms (1)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (1)
49XmlDocument tableLayoutSettingsXml = new();
System.Windows.Forms.Analyzers (1)
System\Windows\Forms\Analyzers\AppManifestAnalyzer.cs (1)
45XmlDocument doc = new();
518 references to XmlDocument
ILLink.Tasks (2)
CreateRuntimeRootDescriptorFile.cs (2)
303 XmlDocument doc = new XmlDocument (); 349 static void AddXmlTypeNode (XmlDocument doc, XmlNode assemblyNode, string typeName, ClassMembers members)
Interop.FunctionalTests (1)
H2SpecCommands.cs (1)
270var xml = new XmlDocument();
Microsoft.AspNetCore.AzureAppServices.SiteExtension.Tests (4)
TransformTest.cs (4)
22var doc = LoadDocAndRunTransform(configFile); 52var doc = LoadDocAndRunTransform("config_existingvalue.xml"); 80private static XmlDocument LoadDocAndRunTransform(string docName) 87var doc = new XmlDocument();
Microsoft.AspNetCore.DataProtection (3)
XmlEncryption\CertificateXmlEncryptor.cs (1)
88var xmlDocument = new XmlDocument();
XmlEncryption\EncryptedXmlDecryptor.cs (2)
68var xmlDocument = new XmlDocument(); 95public EncryptedXmlWithCertificateKeys(XmlKeyDecryptionOptions? options, XmlDocument document)
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Metadata\DefaultModelMetadataTest.cs (1)
928var key = ModelMetadataIdentity.ForType(typeof(XmlDocument));
Microsoft.Build (23)
Construction\Solution\ProjectInSolution.cs (1)
303var projectDocument = new XmlDocument();
Construction\Solution\SolutionFile.cs (1)
1120var etpProjectDocument = new XmlDocument();
Definition\Project.cs (1)
3313XmlDocument document = Preprocessor.GetPreprocessedDocument(Owner);
ElementLocation\XmlAttributeWithLocation.cs (2)
25public XmlAttributeWithLocation(string prefix, string localName, string namespaceURI, XmlDocument document) 33public XmlAttributeWithLocation(string prefix, string localName, string namespaceURI, XmlDocument document, int lineNumber, int columnNumber)
ElementLocation\XmlDocumentWithLocation.cs (1)
57/// <see cref="XmlDocument"/> internal methods.
Evaluation\Preprocessor.cs (13)
53private readonly Dictionary<XmlDocument, List<ResolvedImport>> _implicitImportsByProject = new Dictionary<XmlDocument, List<ResolvedImport>>(); 76internal static XmlDocument GetPreprocessedDocument(Project project) 80XmlDocument result = preprocessor.Preprocess(); 88private XmlDocument Preprocess() 90XmlDocument outerDocument = _project.Xml.XmlDocument; 96XmlDocument destinationDocument = (XmlDocument)outerDocument.CloneNode(false /* shallow */); 222XmlDocument sourceDocument = source.OwnerDocument ?? (XmlDocument)source; 223XmlDocument destinationDocument = destination.OwnerDocument ?? (XmlDocument)destination; 301XmlDocument innerDocument = resolved.XmlDocument;
Evaluation\ProjectRootElementCache.cs (1)
208XmlDocument document = new XmlDocument();
ProjectWriter.cs (2)
101internal void Initialize(XmlDocument project) 113internal void Initialize(XmlDocument project, XmlDeclaration projectRootElementDeclaration)
SolutionConfiguration.cs (1)
112XmlDocument? doc = null;
Microsoft.Build.BuildCheck.UnitTests (3)
EndToEndTests.cs (3)
578var doc = new XmlDocument(); 592private void AddPackageSource(XmlDocument doc, XmlNode? packageSourcesNode, string key, string value) 605private void PopulateXmlAttribute(XmlDocument doc, XmlNode node, string attributeName, string attributeValue)
Microsoft.Build.Tasks.Core (80)
AddToWin32Manifest.cs (7)
129XmlDocument document = LoadManifest(stream); 156private XmlDocument LoadManifest(Stream stream) 158XmlDocument document = new XmlDocument(); 168private void SaveManifest(XmlDocument document, string manifestName) 179private ManifestValidationResult ValidateManifest(string? manifestPath, XmlDocument document, XmlNamespaceManager xmlNamespaceManager) 210private void AddSupportedArchitecturesElement(XmlDocument document, XmlNamespaceManager xmlNamespaceManager) 236private XmlElement GetOrCreateXmlElement(XmlDocument document, XmlNamespaceManager xmlNamespaceManager, string localName, string prefix = "", string namespaceURI = "")
BootstrapperUtil\BootstrapperBuilder.cs (6)
39private XmlDocument _document; 539var resourceDoc = new XmlDocument(); 797private XmlDocument LoadAndValidateXmlDocument(string filePath, bool validateFilePresent, string schemaPath, string schemaNamespace, XmlValidationResults results) 799XmlDocument xmlDocument = null; 889XmlDocument productDoc = LoadAndValidateXmlDocument(strBaseManifestFilename, false, strBaseManifestSchemaFileName, BOOTSTRAPPER_NAMESPACE, productValidationResults); 942XmlDocument langDoc = LoadAndValidateXmlDocument(strLangManifestFilename, false, strLangManifestSchemaFileName, BOOTSTRAPPER_NAMESPACE, packageValidationResults);
CodeTaskFactory.cs (1)
491var document = new XmlDocument();
GenerateApplicationManifest.cs (1)
454var document = new XmlDocument();
ManifestUtil\ApplicationManifest.cs (1)
529var document = new XmlDocument();
ManifestUtil\AssemblyIdentity.cs (3)
193var document = new XmlDocument(); 213var document = new XmlDocument(); 229private static AssemblyIdentity FromManifest(XmlDocument document)
ManifestUtil\DeployManifest.cs (1)
215var doc = new XmlDocument();
ManifestUtil\Manifest.cs (1)
378var document = new XmlDocument();
ManifestUtil\ManifestReader.cs (3)
25XmlDocument document = GetXmlDocument(path); 52private static XmlDocument GetXmlDocument(string path) 61var document = new XmlDocument();
ManifestUtil\mansign2.cs (18)
254internal ManifestSignedXml2(XmlDocument document) 260internal ManifestSignedXml2(XmlDocument document, bool verify) 285public override XmlElement GetIdElement(XmlDocument document, string idValue) 306private XmlDocument _manifestDom = null; 318internal SignedCmiManifest2(XmlDocument manifestDom, bool useSha256) 351XmlDocument licenseDom = null; 400private static void InsertPublisherIdentity(XmlDocument manifestDom, X509Certificate2 signerCert) 446private static void RemoveExistingSignature(XmlDocument manifestDom) 494private static void ReplacePublicKeyToken(XmlDocument manifestDom, AsymmetricAlgorithm snKey, bool useSha256) 553private static byte[] ComputeHashFromManifest(XmlDocument manifestDom, bool useSha256) 560private static byte[] ComputeHashFromManifest(XmlDocument manifestDom, bool oldFormat, bool useSha256) 613XmlDocument normalizedDom = new XmlDocument(); 692private static XmlDocument CreateLicenseDom(CmiManifestSigner2 signer, XmlElement principal, byte[] hash) 694XmlDocument licenseDom = new XmlDocument(); 720private static void AuthenticodeSignLicenseDom(XmlDocument licenseDom, CmiManifestSigner2 signer, string timeStampUrl, bool useSha256, bool disallowMansignTimestampFallback) 896private static void TimestampSignedLicenseDom(XmlDocument licenseDom, string timeStampUrl, bool useSha256, bool disallowMansignTimestampFallback) 959private static void StrongNameSignManifestDom(XmlDocument manifestDom, XmlDocument licenseDom, CmiManifestSigner2 signer, bool useSha256)
ManifestUtil\SecurityUtil.cs (13)
212var doc = new XmlDocument(); 265var doc = new XmlDocument(); 277XmlDocument doc = majorVersion switch 289private static XmlDocument CreateXmlDocV2(string targetZone) 291var doc = new XmlDocument(); 309private static XmlDocument CreateXmlDocV3(string targetZone) 311var doc = new XmlDocument(); 375var document = new XmlDocument(); 398var psDocument = new XmlDocument(); 405internal static XmlDocument PermissionSetToXml(PermissionSet ps) 407XmlDocument inputDocument = new XmlDocument(); 412var outputDocument = new XmlDocument(); 696var doc = new XmlDocument { PreserveWhitespace = true };
ManifestUtil\TrustInfo.cs (13)
35private XmlDocument _inputTrustInfoDocument; 66XmlDocument document = permissionSetElement.OwnerDocument; 159XmlDocument document = new XmlDocument(); 201private static XmlElement GetRequestedPrivilegeElement(XmlElement inputRequestedPrivilegeElement, XmlDocument document) 316private XmlElement GetPermissionSetElement(XmlDocument document) 361private XmlDocument GetOutputPermissionSetDocument() 364XmlDocument outputDocument = SecurityUtilities.PermissionSetToXml(outputPermissionSet); 454var document = new XmlDocument(); 561var outputDocument = new XmlDocument(); 570var privilegeDocument = new XmlDocument(); 609XmlDocument permissionSetDocument = GetOutputPermissionSetDocument(); 704var document = new XmlDocument(); 779XmlDocument permissionSetDocument = GetOutputPermissionSetDocument();
ManifestUtil\XmlUtil.cs (1)
38public static XmlElement CloneElementToDocument(XmlElement element, XmlDocument document, string namespaceURI)
SolutionConfiguration.cs (1)
112XmlDocument? doc = null;
XamlTaskFactory\RelationsParser.cs (6)
183private XmlDocument LoadFile(string filePath) 187var xmlDocument = new XmlDocument(); 211internal XmlDocument LoadXml(string xml) 215var xmlDocument = new XmlDocument(); 236XmlDocument xmlDocument = LoadFile(fileName); 250internal bool ParseXmlDocument(XmlDocument xmlDocument)
XmlPeek.cs (1)
175var doc = new XmlDocument();
XmlPoke.cs (2)
62XmlDocument xmlDoc = new XmlDocument(); 161var doc = new XmlDocument();
XslTransformation.cs (1)
213XmlDocument doc = new XmlDocument();
Microsoft.Build.Tasks.UnitTests (13)
AddToWin32Manifest_Tests.cs (4)
61XmlDocument expectedDoc = new XmlDocument(); 62XmlDocument actualDoc = new XmlDocument(); 125XmlDocument expectedDoc = new XmlDocument(); 126XmlDocument actualDoc = new XmlDocument();
XmlPoke_Tests.cs (9)
49XmlDocument xmlDocument = ExecuteXmlPoke( 72XmlDocument xmlDocument = ExecuteXmlPoke(query: query, value: value); 89XmlDocument xmlDocument = ExecuteXmlPoke(query: query, value: value); 106XmlDocument xmlDocument = ExecuteXmlPoke(query: query, value: value); 130XmlDocument xmlDocument = ExecuteXmlPoke(query: string.Format(queryTemplate, original), value: value); 211XmlDocument xmlDocument = new XmlDocument(); 300XmlDocument xmlDocument = ExecuteXmlPoke(query: query, value: value); 346private static XmlDocument ExecuteXmlPoke(string query, bool useNamespace = false, string value = null) 365XmlDocument xmlDocument = new XmlDocument();
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
616XmlDocument xmldoc = new XmlDocument();
Microsoft.Build.Utilities.Core (2)
PlatformManifest.cs (1)
98XmlDocument doc = new XmlDocument();
SDKManifest.cs (1)
317XmlDocument doc = new XmlDocument();
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\CSharpPDBTestBase.cs (1)
48var doc = new XmlDocument() { XmlResolver = null };
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (2)
InteractiveSessionReferencesTests.cs (2)
197var options1 = options0.AddReferences(typeof(System.Xml.XmlDocument).Assembly); 199var s1 = await s0.ContinueWithAsync<System.Xml.XmlDocument>(@"
Microsoft.DotNet.Open.Api.Tools.Tests (3)
OpenApiAddFileTests.cs (2)
93var projXml = new XmlDocument(); 118var projXml = new XmlDocument();
OpenApiAddProjectTests.cs (1)
75var projXml = new XmlDocument();
Microsoft.DotNet.SignCheckLibrary (1)
Verification\XmlVerifier.cs (1)
40var xmlDoc = new XmlDocument()
Microsoft.Extensions.Configuration.Xml (5)
XmlDocumentDecryptor.cs (5)
26private readonly Func<XmlDocument, EncryptedXml>? _encryptedXmlFactory; 38internal XmlDocumentDecryptor(Func<XmlDocument, EncryptedXml> encryptedXmlFactory) 43private static bool ContainsEncryptedData(XmlDocument document) 71var document = new XmlDocument(); 103protected virtual XmlReader DecryptDocumentAndCreateXmlReader(XmlDocument document)
Microsoft.Gen.Metrics (1)
Parser.cs (1)
346var xmlDoc = new XmlDocument();
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
346var xmlDoc = new XmlDocument();
Microsoft.ML.NugetPackageVersionUpdater (1)
Program.cs (1)
59var csprojDoc = new XmlDocument();
Microsoft.Web.Xdt.Extensions.Tests (4)
InsertOrAppendAttributeTests.cs (4)
17var doc = new XmlDocument(); 41var doc = new XmlDocument(); 65var doc = new XmlDocument(); 89var doc = new XmlDocument();
netstandard (1)
netstandard.cs (1)
2470[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlDocument))]
PresentationBuildTasks (10)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (9)
122XmlDocument xmlProjectDoc = null; 251XmlDocument xmlProjectDoc = null; 593private void RemoveEntityByName(XmlDocument xmlProjectDoc, string sItemName, string groupName) 697private void RemoveItemsByName(XmlDocument xmlProjectDoc, string sItemName) 705private void RemovePropertiesByName(XmlDocument xmlProjectDoc, string sPropertyName) 713private void AddNewItems(XmlDocument xmlProjectDoc, string sItemName, ITaskItem[] pItemList) 768private void AddNewProperties(XmlDocument xmlProjectDoc, List<(string PropertyName, string PropertyValue)> properties ) 801private static void ReplaceImplicitImports(XmlDocument xmlProjectDoc) 884static XmlNode CreateImportProjectSdkNode(XmlDocument xmlProjectDoc, string projectAttributeValue, SdkReference sdkReference)
Microsoft\Build\Tasks\Windows\UpdateManifestForBrowserApplication.cs (1)
85XmlDocument manifestDocument;
PresentationFramework (46)
MS\Internal\Annotations\XmlElementCollection.cs (3)
46_xmlDocsRefCounts = new Dictionary<XmlDocument, int>(); 212Invariant.Assert(_xmlDocsRefCounts.ContainsKey(sender as XmlDocument), "Not expecting a notification from this sender"); 259Dictionary<XmlDocument, int> _xmlDocsRefCounts;
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
488XmlDocument xmlDoc = new XmlDocument(); 498XmlDocument xmlDoc = new XmlDocument();
MS\Internal\Data\XmlBindingWorker.cs (5)
350XmlDocument doc = DocumentFor(ContextNode); 371XmlDocument doc = DocumentFor(ContextNode); 380private XmlDocument DocumentFor(XmlNode node) 382XmlDocument doc = node.OwnerDocument; 386doc = node as XmlDocument;
MS\Internal\Data\XmlNodeChangedEventManager.cs (8)
42public static void AddListener(XmlDocument source, IWeakEventListener listener) 53public static void RemoveListener(XmlDocument source, IWeakEventListener listener) 64public static void AddHandler(XmlDocument source, EventHandler<XmlNodeChangedEventArgs> handler) 74public static void RemoveHandler(XmlDocument source, EventHandler<XmlNodeChangedEventArgs> handler) 103XmlDocument doc = (XmlDocument)source; 115XmlDocument doc = (XmlDocument)source;
MS\Internal\Globalization\BamlTreeMap.cs (3)
318private XmlDocument _commentsDocument; 364XmlDocument doc = null; 649private static XmlElement FindElementByID(XmlDocument doc, string uid)
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
436XmlDocument doc = new XmlDocument();
MS\Internal\IO\Packaging\XamlFilter.cs (2)
791XmlDocument fixedPageTree = new XmlDocument(); 1019private XmlDocument _fixedPageDomTree;
System\Windows\Annotations\Annotation.cs (1)
278XmlDocument doc = null;
System\Windows\Annotations\AnnotationHelper.cs (1)
1039XmlDocument doc = new XmlDocument();
System\Windows\Annotations\AnnotationResource.cs (1)
171XmlDocument doc = new XmlDocument();
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
1033private XmlDocument _document;
System\Windows\Data\XmlDataProvider.cs (17)
114public XmlDocument Document 292XmlDocument doc = null; 402XmlDocument doc = _host.DocumentForSerialization; 435private XmlDocument DocumentForSerialization 473XmlDocument doc; 503_savedDocument = (XmlDocument)doc.Clone(); 564XmlDocument doc = new XmlDocument(); 645XmlDocument doc = (XmlDocument) arg; 651private void BuildNodeCollection(XmlDocument doc) 699ChangeDocument((XmlDocument) arg); 704private void ChangeDocument(XmlDocument doc) 761XmlNodeList nodes = GetResultNodeList((XmlDocument) sender); 770private XmlNodeList GetResultNodeList(XmlDocument doc) 841private XmlDocument _document; // the active XML DOM document 842private XmlDocument _domSetDocument; // a DOM set by user 843private XmlDocument _savedDocument; // stored copy of Inline Xml for rollback
System\Windows\Documents\FixedTextBuilder.cs (1)
1804private XmlDocument _dumpDoc;
ReachFramework (4)
PrintConfig\PrtTicket_Editor.cs (2)
426public static string GetURI(XmlDocument xmlDoc, string QName) 448public static string GetQName(XmlDocument xmlDoc, string URI, string localName)
PrintConfig\PrtTicket_Public.cs (2)
599internal XmlDocument XmlDoc 642private XmlDocument _xmlDoc;
System.Configuration.ConfigurationManager (14)
System\Configuration\ConfigXmlAttribute.cs (1)
15XmlDocument doc)
System\Configuration\ConfigXmlCDataSection.cs (1)
14public ConfigXmlCDataSection(string filename, int line, string data, XmlDocument doc)
System\Configuration\ConfigXmlComment.cs (1)
14public ConfigXmlComment(string filename, int line, string comment, XmlDocument doc)
System\Configuration\ConfigXmlElement.cs (1)
15XmlDocument doc)
System\Configuration\ConfigXmlSignificantWhitespace.cs (1)
14public ConfigXmlSignificantWhitespace(string filename, int line, string strData, XmlDocument doc)
System\Configuration\ConfigXmlText.cs (1)
14public ConfigXmlText(string filename, int line, string strData, XmlDocument doc)
System\Configuration\ConfigXmlWhitespace.cs (1)
14public ConfigXmlWhitespace(string filename, int line, string comment, XmlDocument doc)
System\Configuration\DpapiProtectedConfigurationProvider.cs (2)
39XmlDocument xmlDocument = new XmlDocument(); 53XmlDocument xmlDocument = new XmlDocument();
System\Configuration\LocalFileSettingsProvider.cs (2)
438XmlDocument doc = new XmlDocument(); 512private readonly XmlDocument document;
System\Configuration\ProtectedConfigurationSection.cs (2)
88XmlDocument doc = new XmlDocument(); 106XmlDocument xmlDocument = new XmlDocument { PreserveWhitespace = true };
System\Configuration\SettingValueElement.cs (1)
11private static readonly XmlDocument _document = new XmlDocument();
System.Data.Common (32)
System\Data\DataSet.cs (7)
1589XmlDocument xdoc = new XmlDocument(); 1687XmlDocument xdoc = new XmlDocument(); // we may need this to infer the schema 1858XmlDocument xdoc = new XmlDocument(); // we may need this to infer the schema 2108XmlDocument xdoc = new XmlDocument(); // we may need this to infer the schema 2398internal void InferSchema(XmlDocument xdoc, string[]? excludedNamespaces, XmlReadMode mode) 2495XmlDocument xdoc = new XmlDocument(); 2623XmlDocument xdoc = new XmlDocument(); // we may need this to infer the schema
System\Data\DataTable.cs (4)
5776XmlDocument xdoc = new XmlDocument(); // we may need this to infer the schema 6014XmlDocument xdoc = new XmlDocument(); // we may need this to infer the schema 6287XmlDocument xdoc = new XmlDocument(); // we may need this to infer the schema 6346XmlDocument xdoc = new XmlDocument();
System\Data\ProviderBase\SchemaMapping.cs (3)
348System.Xml.XmlDocument document = new System.Xml.XmlDocument(); 648else if (typeof(System.Xml.XmlDocument) == dataColumn.DataType) 882else if (typeof(System.Xml.XmlDocument) == dataColumn.DataType)
System\Data\SimpleType.cs (1)
228internal XmlNode ToNode(XmlDocument dc, Hashtable prefixes, bool inRemoting)
System\Data\XmlDataLoader.cs (1)
289internal void LoadData(XmlDocument xdoc)
System\Data\xmlsaver.cs (12)
40private XmlDocument? _dc; 545internal void SchemaTree(XmlDocument xd, XmlWriter xmlWriter, DataSet? ds, DataTable? dt, bool writeHierarchy) 943internal XmlElement SchemaTree(XmlDocument xd, DataTable dt) 1016internal XmlElement FillDataSetElement(XmlDocument xd, DataSet? ds, DataTable? dt) 1112XmlDocument doc = new XmlDocument(); 1142XmlDocument doc = new XmlDocument(); 1154internal XmlElement HandleRelation(DataRelation rel, XmlDocument dc) 1241internal void HandleColumnType(DataColumn col, XmlDocument dc, XmlElement root, XmlElement schema) 1423internal XmlElement HandleColumn(DataColumn col, XmlDocument dc, XmlElement schema, bool fWriteOrdinal) 1600internal XmlElement HandleTable(DataTable table, XmlDocument dc, XmlElement schema) 1727internal XmlElement HandleTable(DataTable table, XmlDocument dc, XmlElement schema, bool genNested) 2264internal XmlDocument _doc;
System\Data\XMLSchema.cs (1)
2876internal XmlIgnoreNamespaceReader(XmlDocument xdoc, string[] namespacesToIgnore) : base(xdoc)
System\Xml\XmlBoundElement.cs (1)
30internal XmlBoundElement(string prefix, string localName, string namespaceURI, XmlDocument doc) : base(prefix, localName, namespaceURI, doc)
System\Xml\XmlDataImplementation.cs (1)
17public override XmlDocument CreateDocument() => new XmlDataDocument(this);
System\Xml\XPathNodePointer.cs (1)
357XmlElement? rootElem = ((XmlDocument)_node).DocumentElement;
System.Private.DataContractSerialization (10)
System\Runtime\Serialization\ExtensionDataObject.cs (2)
220private XmlDocument? _ownerDocument; 239internal XmlDocument? OwnerDocument
System\Runtime\Serialization\SchemaExporter.cs (3)
23private XmlDocument? _xmlDoc; 37private XmlDocument XmlDoc => _xmlDoc ??= new XmlDocument(); 233private static XmlElement ExportActualType(XmlQualifiedName typeName, XmlDocument xmlDoc)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (4)
24private XmlDocument? _xmlDocument; 32private XmlDocument Document => _xmlDocument ??= new XmlDocument(); 524XmlDocument xmlDoc = new XmlDocument(); 1049internal static XmlElement CreateWrapperXmlElement(XmlDocument document, IList<XmlAttribute>? xmlAttributes, IList<XmlNode>? xmlChildNodes, string? prefix, string? localName, string? ns)
System\Runtime\Serialization\XmlSerializableServices.cs (1)
16XmlDocument doc = new XmlDocument();
System.Private.Xml (110)
System\Xml\Dom\DocumentSchemaValidator.cs (3)
42private readonly XmlDocument _document; 57public DocumentSchemaValidator(XmlDocument ownerDocument, XmlSchemaSet schemas, ValidationEventHandler? eventHandler) 267XmlElement? docElem = ((XmlDocument)node).DocumentElement;
System\Xml\Dom\DocumentXmlWriter.cs (2)
59private readonly XmlDocument _document; // context document 68public DocumentXmlWriter(DocumentXmlWriterType type, XmlNode start, XmlDocument document)
System\Xml\Dom\DocumentXPathNavigator.cs (5)
17private readonly XmlDocument _document; // owner document 22public DocumentXPathNavigator(XmlDocument document, XmlNode node) 1245XmlDocument? ownerDocument; 1249ownerDocument = (XmlDocument)_source; 1799private static XmlNamespaceManager GetNamespaceManager(XmlNode? node, XmlDocument document)
System\Xml\Dom\DomNameTable.cs (2)
15private readonly XmlDocument _ownerDocument; 20public DomNameTable(XmlDocument document)
System\Xml\Dom\XmlAttribute.cs (8)
19internal XmlAttribute(XmlName name, XmlDocument doc) : base(doc) 26XmlDocument.CheckName(name.Prefix); 27XmlDocument.CheckName(name.LocalName); 39protected internal XmlAttribute(string? prefix, string localName, string? namespaceURI, XmlDocument doc) 55XmlDocument doc = OwnerDocument; 100public override XmlDocument OwnerDocument 143XmlDocument ownerDocument = OwnerDocument; 168internal override XmlNode AppendChildForLoad(XmlNode newChild, XmlDocument doc)
System\Xml\Dom\XmlAttributeCollection.cs (3)
154XmlDocument doc = node.OwnerDocument; 387XmlDocument? doc = parent.OwnerDocument; 404XmlDocument? doc = parent.OwnerDocument;
System\Xml\Dom\XmlCDataSection.cs (1)
13protected internal XmlCDataSection(string? data, XmlDocument doc) : base(data, doc)
System\Xml\Dom\XmlCharacterData.cs (2)
17protected internal XmlCharacterData(string? data, XmlDocument doc) : base(doc) 201Debug.Assert(XmlDocument.IsTextNode(n.NodeType) || (n.ParentNode != null && n.ParentNode.NodeType == XmlNodeType.EntityReference));
System\Xml\Dom\XmlChildNodes.cs (1)
50return XmlDocument.EmptyEnumerator;
System\Xml\Dom\XmlComment.cs (1)
12protected internal XmlComment(string? comment, XmlDocument doc) : base(comment, doc)
System\Xml\Dom\XmlDeclaration.cs (1)
21protected internal XmlDeclaration(string version, string? encoding, string? standalone, XmlDocument doc) : base(doc)
System\Xml\Dom\XmlDocument.cs (4)
347XmlDocument clone = Implementation.CreateDocument(); 421public override XmlDocument? OwnerDocument 1493XmlDocument parentDocument = nodeToValidate.Document; 1770internal override XmlNode AppendChildForLoad(XmlNode newChild, XmlDocument doc)
System\Xml\Dom\XmlDocumentFragment.cs (4)
48protected internal XmlDocumentFragment(XmlDocument ownerDocument) : base() 81public override XmlDocument OwnerDocument 85return (XmlDocument)parentNode!; 110XmlDocument doc = OwnerDocument;
System\Xml\Dom\XmlDocumentType.cs (1)
23protected internal XmlDocumentType(string name, string? publicId, string? systemId, string? internalSubset, XmlDocument doc) : base(doc)
System\Xml\Dom\XmlElement.cs (7)
21internal XmlElement(XmlName name, bool empty, XmlDocument doc) : base(doc) 27XmlDocument.CheckName(name.Prefix); 28XmlDocument.CheckName(name.LocalName); 40protected internal XmlElement(string? prefix, string localName, string? namespaceURI, XmlDocument doc) 55XmlDocument doc = OwnerDocument; 124public override XmlDocument OwnerDocument 138internal override XmlNode AppendChildForLoad(XmlNode newChild, XmlDocument doc)
System\Xml\Dom\XmlElementList.cs (2)
364private readonly XmlDocument _doc; 367internal XmlElementListListener(XmlDocument doc, XmlElementList elemList)
System\Xml\Dom\XmlEntity.cs (1)
17internal XmlEntity(string name, string? publicId, string? systemId, string? notationName, XmlDocument doc) : base(doc)
System\Xml\Dom\XmlEntityReference.cs (1)
35protected internal XmlEntityReference(string name, XmlDocument doc) : base(doc)
System\Xml\Dom\XmlImplementation.cs (1)
35public virtual XmlDocument CreateDocument()
System\Xml\Dom\XmlLinkedNode.cs (1)
11internal XmlLinkedNode(XmlDocument doc) : base(doc)
System\Xml\Dom\XmlLoader.cs (6)
15private XmlDocument? _doc; 23internal void Load(XmlDocument doc, XmlReader reader, bool preserveWhitespace) 55private void LoadDocSequence(XmlDocument parentDoc) 68internal XmlNode? ReadCurrentNode(XmlDocument doc, XmlReader reader) 585XmlDocument doc = dtNode.OwnerDocument!; 928private static XmlTextReaderImpl CreateInnerXmlReader(string xmlFragment, XmlNodeType nt, XmlParserContext context, XmlDocument doc)
System\Xml\Dom\XmlName.cs (5)
17internal XmlDocument ownerDoc; 20public static XmlName Create(string prefix, string localName, string ns, int hashCode, XmlDocument ownerDoc, XmlName next, IXmlSchemaInfo? schemaInfo) 32internal XmlName(string prefix, string localName, string ns, int hashCode, XmlDocument ownerDoc, XmlName next) 75public XmlDocument OwnerDocument 202internal XmlNameEx(string prefix, string localName, string ns, int hashCode, XmlDocument ownerDoc, XmlName next, IXmlSchemaInfo schemaInfo) : base(prefix, localName, ns, hashCode, ownerDoc, next)
System\Xml\Dom\XmlNamedNodemap.cs (1)
165internal virtual XmlNode AddNodeForLoad(XmlNode node, XmlDocument doc)
System\Xml\Dom\XmlNamedNodeMap.SmallXmlNodeList.cs (1)
185return XmlDocument.EmptyEnumerator;
System\Xml\Dom\XmlNode.cs (21)
27internal XmlNode(XmlDocument doc) 37XmlDocument? thisAsDoc = this as XmlDocument; 43XmlDocument? doc = OwnerDocument; 183public virtual XmlDocument? OwnerDocument 189return (XmlDocument)parentNode; 265XmlDocument? childDoc = newChild.OwnerDocument; 266XmlDocument? thisDoc = OwnerDocument; 379XmlDocument? childDoc = newChild.OwnerDocument; 380XmlDocument? thisDoc = OwnerDocument; 582XmlDocument? thisDoc = OwnerDocument ?? this as XmlDocument; 591XmlDocument? childDoc = newChild.OwnerDocument; 656internal virtual XmlNode AppendChildForLoad(XmlNode newChild, XmlDocument doc) 718internal virtual void CopyChildren(XmlDocument doc, XmlNode container, bool deep) 1011return XmlDocument.NotKnownSchemaInfo; 1058internal XmlDocument Document 1063return (XmlDocument)this; 1079XmlDocument doc = Document; 1168XmlDocument doc = Document; 1315XmlDocument? doc = OwnerDocument;
System\Xml\Dom\XmlNodeReader.cs (3)
25private readonly XmlDocument _doc; 90_doc = (XmlDocument)_curNode; 1115public XmlDocument Document
System\Xml\Dom\XmlNotation.cs (1)
16internal XmlNotation(string name, string? publicId, string? systemId, XmlDocument doc) : base(doc)
System\Xml\Dom\XmlProcessingInstruction.cs (1)
17protected internal XmlProcessingInstruction(string target, string? data, XmlDocument doc) : base(doc)
System\Xml\Dom\XmlSignificantWhiteSpace.cs (1)
12protected internal XmlSignificantWhitespace(string? strData, XmlDocument doc) : base(strData, doc)
System\Xml\Dom\XmlText.cs (1)
17protected internal XmlText(string? strData, XmlDocument doc) : base(strData, doc)
System\Xml\Dom\XmlUnspecifiedAttribute.cs (2)
11internal XmlUnspecifiedAttribute(string? prefix, string localName, string? namespaceURI, XmlDocument doc) 25XmlDocument doc = OwnerDocument;
System\Xml\Dom\XmlWhitespace.cs (1)
13protected internal XmlWhitespace(string? strData, XmlDocument doc) : base(strData, doc)
System\Xml\Schema\Parser.cs (1)
32private readonly XmlDocument _dummyDocument;
System\Xml\Schema\XmlSchema.cs (2)
54private XmlDocument? _document; 419internal XmlDocument Document => _document ??= new XmlDocument();
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
955bool isDoc = specialMapping.TypeDesc.FullName == typeof(XmlDocument).FullName;
System\Xml\Serialization\XmlSchemaExporter.cs (1)
1190XmlDocument d = new XmlDocument();
System\Xml\Serialization\XmlSerializationReader.cs (5)
23private XmlDocument? _d; 169protected XmlDocument Document 872protected XmlDocument? ReadXmlDocument(bool wrapped) 877XmlDocument doc = new XmlDocument(); 4810bool isDoc = special.TypeDesc.FullName == typeof(XmlDocument).FullName;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (3)
1968MethodInfo XmlDocument_ReadNode = typeof(XmlDocument).GetMethod( 2338MethodInfo XmlDocument_CreateTextNode = typeof(XmlDocument).GetMethod( 3178bool isDoc = special.TypeDesc.FullName == typeof(XmlDocument).FullName;
System\Xml\Serialization\XmlSerializationWriter.cs (2)
784if (node is XmlDocument) 786node = ((XmlDocument)node).DocumentElement!;
System.Security.Cryptography.Xml (134)
System\Security\Cryptography\Xml\CanonicalXml.cs (5)
28internal CanonicalXml(XmlDocument document, XmlResolver? resolver) : this(document, resolver, false) { } 29internal CanonicalXml(XmlDocument document, XmlResolver? resolver, bool includeComments) 49XmlDocument? doc = Utils.GetOwnerDocument(nodeList); 67private static void MarkInclusionStateForNodes(XmlNodeList nodeList, XmlDocument inputRoot, XmlDocument root)
System\Security\Cryptography\Xml\CanonicalXmlAttribute.cs (1)
14public CanonicalXmlAttribute(string? prefix, string localName, string? namespaceURI, XmlDocument doc, bool defaultNodeSetInclusionState)
System\Security\Cryptography\Xml\CanonicalXmlCDataSection.cs (1)
13public CanonicalXmlCDataSection(string? data, XmlDocument doc, bool defaultNodeSetInclusionState) : base(data, doc)
System\Security\Cryptography\Xml\CanonicalXmlComment.cs (1)
15public CanonicalXmlComment(string? comment, XmlDocument doc, bool defaultNodeSetInclusionState, bool includeComments)
System\Security\Cryptography\Xml\CanonicalXmlElement.cs (1)
15public CanonicalXmlElement(string? prefix, string localName, string? namespaceURI, XmlDocument doc, bool defaultNodeSetInclusionState)
System\Security\Cryptography\Xml\CanonicalXmlEntityReference.cs (1)
14public CanonicalXmlEntityReference(string name, XmlDocument doc, bool defaultNodeSetInclusionState)
System\Security\Cryptography\Xml\CanonicalXmlProcessingInstruction.cs (1)
14public CanonicalXmlProcessingInstruction(string target, string data, XmlDocument doc, bool defaultNodeSetInclusionState)
System\Security\Cryptography\Xml\CanonicalXmlSignificantWhitespace.cs (1)
14public CanonicalXmlSignificantWhitespace(string? strData, XmlDocument doc, bool defaultNodeSetInclusionState)
System\Security\Cryptography\Xml\CanonicalXmlText.cs (1)
14public CanonicalXmlText(string? strData, XmlDocument doc, bool defaultNodeSetInclusionState)
System\Security\Cryptography\Xml\CanonicalXmlWhitespace.cs (1)
14public CanonicalXmlWhitespace(string? strData, XmlDocument doc, bool defaultNodeSetInclusionState)
System\Security\Cryptography\Xml\CipherData.cs (2)
72XmlDocument document = new XmlDocument(); 77internal XmlElement GetXml(XmlDocument document)
System\Security\Cryptography\Xml\CipherReference.cs (2)
47XmlDocument document = new XmlDocument(); 52internal new XmlElement GetXml(XmlDocument document)
System\Security\Cryptography\Xml\DataObject.cs (2)
111XmlDocument document = new XmlDocument(); 116internal XmlElement GetXml(XmlDocument document)
System\Security\Cryptography\Xml\DSAKeyValue.cs (2)
69XmlDocument xmlDocument = new XmlDocument(); 92internal override XmlElement GetXml(XmlDocument xmlDocument)
System\Security\Cryptography\Xml\EncryptedData.cs (2)
75XmlDocument document = new XmlDocument(); 80internal XmlElement GetXml(XmlDocument document)
System\Security\Cryptography\Xml\EncryptedKey.cs (2)
150XmlDocument document = new XmlDocument(); 155internal XmlElement GetXml(XmlDocument document)
System\Security\Cryptography\Xml\EncryptedReference.cs (2)
83XmlDocument document = new XmlDocument(); 88internal XmlElement GetXml(XmlDocument document)
System\Security\Cryptography\Xml\EncryptedXml.cs (5)
62private readonly XmlDocument _document; 85public EncryptedXml(XmlDocument document) : this(document, null) { } 89public EncryptedXml(XmlDocument document, Evidence? evidence) 264public virtual XmlElement? GetIdElement(XmlDocument document, string idValue) 831XmlDocument importDocument = new XmlDocument();
System\Security\Cryptography\Xml\EncryptionMethod.cs (2)
61XmlDocument document = new XmlDocument(); 66internal XmlElement GetXml(XmlDocument document)
System\Security\Cryptography\Xml\EncryptionProperty.cs (2)
72XmlDocument document = new XmlDocument(); 77internal XmlElement GetXml(XmlDocument document)
System\Security\Cryptography\Xml\ExcCanonicalXml.cs (4)
28internal ExcCanonicalXml(XmlDocument document, bool includeComments, string inclusiveNamespacesPrefixList, XmlResolver resolver) 48XmlDocument? doc = Utils.GetOwnerDocument(nodeList); 77private static void MarkInclusionStateForNodes(XmlNodeList nodeList, XmlDocument inputRoot, XmlDocument root)
System\Security\Cryptography\Xml\KeyInfo.cs (2)
36XmlDocument xmlDocument = new XmlDocument(); 41internal XmlElement GetXml(XmlDocument xmlDocument)
System\Security\Cryptography\Xml\KeyInfoClause.cs (1)
21internal virtual XmlElement GetXml(XmlDocument xmlDocument)
System\Security\Cryptography\Xml\KeyInfoEncryptedKey.cs (1)
35internal override XmlElement GetXml(XmlDocument xmlDocument)
System\Security\Cryptography\Xml\KeyInfoName.cs (2)
39XmlDocument xmlDocument = new XmlDocument(); 44internal override XmlElement GetXml(XmlDocument xmlDocument)
System\Security\Cryptography\Xml\KeyInfoNode.cs (2)
40XmlDocument xmlDocument = new XmlDocument(); 45internal override XmlElement GetXml(XmlDocument xmlDocument)
System\Security\Cryptography\Xml\KeyInfoRetrievalMethod.cs (2)
48XmlDocument xmlDocument = new XmlDocument(); 53internal override XmlElement GetXml(XmlDocument xmlDocument)
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (2)
216XmlDocument xmlDocument = new XmlDocument(); 221internal override XmlElement GetXml(XmlDocument xmlDocument)
System\Security\Cryptography\Xml\Reference.cs (7)
162XmlDocument document = new XmlDocument(); 167internal XmlElement GetXml(XmlDocument document) 353internal void UpdateHashValue(XmlDocument document, CanonicalXmlNodeList refList) 361internal byte[]? CalculateHashValue(XmlDocument document, CanonicalXmlNodeList refList) 407XmlDocument docWithNoComments = Utils.DiscardComments(Utils.PreProcessDocumentInput(document, resolver!, baseUri)); 454XmlDocument normDocument = Utils.PreProcessElementInput(elem, resolver!, baseUri); 462XmlDocument docWithNoComments = Utils.DiscardComments(normDocument);
System\Security\Cryptography\Xml\RSAKeyValue.cs (2)
64XmlDocument xmlDocument = new XmlDocument(); 74internal override XmlElement GetXml(XmlDocument xmlDocument)
System\Security\Cryptography\Xml\Signature.cs (2)
87XmlDocument document = new XmlDocument(); 92internal XmlElement GetXml(XmlDocument document)
System\Security\Cryptography\Xml\SignedInfo.cs (2)
159XmlDocument document = new XmlDocument(); 164internal XmlElement GetXml(XmlDocument document)
System\Security\Cryptography\Xml\SignedXml.cs (8)
21private XmlDocument? _containingDocument; 99public SignedXml(XmlDocument document) 552public virtual XmlElement? GetIdElement(XmlDocument? document, string idValue) 557internal static XmlElement? DefaultGetIdElement(XmlDocument? document, string idValue) 582XmlDocument docClone = (XmlDocument)document.CloneNode(true); 799XmlDocument doc = Utils.PreProcessElementInput(SignedInfo!.GetXml(), resolver!, baseUri); 1086private static XmlElement? GetSingleReferenceTarget(XmlDocument document, string idAttributeName, string idValue)
System\Security\Cryptography\Xml\Transform.cs (3)
118XmlDocument document = new XmlDocument(); 123internal XmlElement GetXml(XmlDocument document) 128internal XmlElement GetXml(XmlDocument document, string name)
System\Security\Cryptography\Xml\TransformChain.cs (7)
81if (transform.AcceptsType(typeof(XmlDocument))) 84XmlDocument doc = new XmlDocument(); 114if (currentInput is XmlDocument) 118CanonicalXml c14n = new CanonicalXml((XmlDocument)currentInput, resolver); 145if (currentInput is XmlDocument) 147CanonicalXml c14n = new CanonicalXml((XmlDocument)currentInput, resolver); 154internal XmlElement GetXml(XmlDocument document, string ns)
System\Security\Cryptography\Xml\Utils.cs (6)
197internal static XmlDocument PreProcessDocumentInput(XmlDocument document, XmlResolver xmlResolver, string baseUri) 221internal static XmlDocument PreProcessElementInput(XmlElement elem, XmlResolver xmlResolver, string? baseUri) 244internal static XmlDocument DiscardComments(XmlDocument document) 460internal static XmlDocument? GetOwnerDocument(XmlNodeList nodeList)
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (10)
18private readonly Type[] _inputTypes = { typeof(Stream), typeof(XmlDocument) }; 19private readonly Type[] _outputTypes = { typeof(XmlDocument) }; 23private XmlDocument? _containingDocument; 124XmlDocument document = new XmlDocument(); 143else if (obj is XmlDocument) 145LoadXmlDocumentInput((XmlDocument)obj); 151XmlDocument document = new XmlDocument(); 163private void LoadXmlDocumentInput(XmlDocument document) 275if (type == typeof(XmlDocument)) 276return (XmlDocument)GetOutput();
System\Security\Cryptography\Xml\XmlDsigBase64Transform.cs (3)
13private readonly Type[] _inputTypes = { typeof(Stream), typeof(XmlNodeList), typeof(XmlDocument) }; 53if (obj is XmlDocument) 55LoadXmlNodeListInput(((XmlDocument)obj).SelectNodes("//.")!);
System\Security\Cryptography\Xml\XmlDsigC14NTransform.cs (3)
11private readonly Type[] _inputTypes = { typeof(Stream), typeof(XmlDocument), typeof(XmlNodeList) }; 56if (obj is XmlDocument) 58_cXml = new CanonicalXml((XmlDocument)obj, resolver, _includeComments);
System\Security\Cryptography\Xml\XmlDsigEnvelopedSignatureTransform.cs (10)
11private readonly Type[] _inputTypes = { typeof(Stream), typeof(XmlNodeList), typeof(XmlDocument) }; 12private readonly Type[] _outputTypes = { typeof(XmlNodeList), typeof(XmlDocument) }; 16private XmlDocument? _containingDocument; 71if (obj is XmlDocument) 73LoadXmlDocumentInput((XmlDocument)obj); 80XmlDocument doc = new XmlDocument(); 108private void LoadXmlDocumentInput(XmlDocument doc) 185else if (type == typeof(XmlDocument) || type.IsSubclassOf(typeof(XmlDocument))) 188return (XmlDocument)GetOutput();
System\Security\Cryptography\Xml\XmlDsigExcC14NTransform.cs (4)
11private readonly Type[] _inputTypes = { typeof(Stream), typeof(XmlDocument), typeof(XmlNodeList) }; 82else if (obj is XmlDocument) 84_excCanonicalXml = new ExcCanonicalXml((XmlDocument)obj, _includeComments, _inclusiveNamespacesPrefixList!, resolver); 98XmlDocument document = new XmlDocument();
System\Security\Cryptography\Xml\XmlDsigXPathTransform.cs (6)
14private readonly Type[] _inputTypes = { typeof(Stream), typeof(XmlNodeList), typeof(XmlDocument) }; 17private XmlDocument? _document; 88XmlDocument document = new XmlDocument(); 128else if (obj is XmlDocument) 130LoadXmlDocumentInput((XmlDocument)obj); 154private void LoadXmlDocumentInput(XmlDocument doc)
System\Security\Cryptography\Xml\XmlDsigXsltTransform.cs (3)
15private readonly Type[] _inputTypes = { typeof(Stream), typeof(XmlDocument), typeof(XmlNodeList) }; 99else if (obj is XmlDocument) 101CanonicalXml xmlDoc = new CanonicalXml((XmlDocument)obj, null!, _includeComments);
System\Security\Cryptography\Xml\XmlLicenseTransform.cs (5)
14private readonly Type[] _inputTypes = { typeof(XmlDocument) }; 15private readonly Type[] _outputTypes = { typeof(XmlDocument) }; 17private XmlDocument? _license; 116if ((type != typeof(XmlDocument)) && (!type.IsSubclassOf(typeof(XmlDocument))))
System.Windows.Forms (1)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (1)
49XmlDocument tableLayoutSettingsXml = new();
System.Windows.Forms.Analyzers (1)
System\Windows\Forms\Analyzers\AppManifestAnalyzer.cs (1)
45XmlDocument doc = new();
System.Xml (1)
System.Xml.cs (1)
199[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlDocument))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
127[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlDocument))]
System.Xml.XmlDocument (1)
System.Xml.XmlDocument.cs (1)
10[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlDocument))]