100 references to DocumentElement
Microsoft.AspNetCore.DataProtection (3)
XmlEncryption\CertificateXmlEncryptor.cs (2)
90var elementToEncrypt = (XmlElement)xmlDocument.DocumentElement!.FirstChild!; 98return XElement.Load(xmlDocument.DocumentElement.FirstChild!.CreateNavigator()!.ReadSubtree());
XmlEncryption\EncryptedXmlDecryptor.cs (1)
78return XElement.Load(xmlDocument.DocumentElement!.FirstChild!.CreateNavigator()!.ReadSubtree());
Microsoft.Build (11)
Construction\Solution\SolutionFile.cs (1)
1164XmlNodeList referenceNodes = etpProjectDocument.DocumentElement.SelectNodes("/EFPROJECT/GENERAL/References/Reference");
Evaluation\Preprocessor.cs (8)
94AddImplicitImportNodes(outerDocument.DocumentElement); 236sourceDocument.DocumentElement == child && // This is the root element, not some random element named 'Project' 237destinationDocument.DocumentElement != null && // Skip <Project> tag from the outer project 241string outerInitialTargets = destinationDocument.DocumentElement.GetAttribute(XMakeAttributes.initialTargets).Trim(); 251destinationDocument.DocumentElement.SetAttribute(XMakeAttributes.initialTargets, outerInitialTargets + innerInitialTargets); 255string outerDefaultTargets = destinationDocument.DocumentElement.GetAttribute(XMakeAttributes.defaultTargets).Trim(); 263destinationDocument.DocumentElement.SetAttribute(XMakeAttributes.defaultTargets, innerDefaultTargets); 268AddImplicitImportNodes(child.OwnerDocument.DocumentElement);
Evaluation\ProjectParser.cs (1)
130XmlElementWithLocation element = _document.DocumentElement as XmlElementWithLocation;
SolutionConfiguration.cs (1)
124return doc?.DocumentElement?.ChildNodes;
Microsoft.Build.BuildCheck.UnitTests (1)
EndToEndTests.cs (1)
904if (doc.DocumentElement != null)
Microsoft.Build.Tasks.Core (10)
BootstrapperUtil\BootstrapperBuilder.cs (3)
867Debug.Assert(xmlDocument.DocumentElement != null && 868string.Equals(xmlDocument.DocumentElement.NamespaceURI, schemaNamespace, StringComparison.Ordinal), 869"'" + xmlDocument.DocumentElement.NamespaceURI + "' is not '" + schemaNamespace + "'...");
ManifestUtil\DeployManifest.cs (1)
221XmlNode fileListNode = doc.DocumentElement;
ManifestUtil\mansign2.cs (2)
795licenseDom.DocumentElement.ParentNode.InnerXml = "<msrel:RelData xmlns:msrel=\"" + 1009signedXml.KeyInfo.AddClause(new KeyInfoNode(licenseDom.DocumentElement));
ManifestUtil\TrustInfo.cs (3)
195XmlElement trustInfoElement = _inputTrustInfoDocument.DocumentElement; 320XmlElement trustInfoElement = document.DocumentElement; 593XmlElement permissionSetElement = outputDocument.DocumentElement;
SolutionConfiguration.cs (1)
124return doc?.DocumentElement?.ChildNodes;
Microsoft.Maui.Controls.SourceGen (1)
CodeBehindGenerator.cs (1)
144 if (xmlDoc.DocumentElement.NamespaceURI == XamlParser.FormsUri)
Microsoft.ML.NugetPackageVersionUpdater (1)
Program.cs (1)
62var packageReferenceNodes = csprojDoc.DocumentElement.SelectNodes(packageReferencePath);
PresentationBuildTasks (5)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (5)
624XmlNode root = xmlProjectDoc.DocumentElement; 716XmlNode root = xmlProjectDoc.DocumentElement; 771XmlNode root = xmlProjectDoc.DocumentElement; 804XmlNode root = xmlProjectDoc.DocumentElement; 881XmlNode nodeImport = xmlProjectDoc.CreateElement("Import", xmlProjectDoc.DocumentElement.NamespaceURI);
PresentationFramework (7)
MS\Internal\Globalization\BamlTreeMap.cs (2)
648if (doc != null && doc.DocumentElement != null) 650foreach (XmlNode node in doc.DocumentElement.ChildNodes)
MS\Internal\IO\Packaging\XamlFilter.cs (3)
350_xamlReader = new XmlNodeReader(_fixedPageDomTree.DocumentElement); 791fixedPageTree.DocumentElement.SetAttribute(_xmlLangAttribute, _xamlReader.XmlLang); 795_fixedPageContentExtractor = new FixedPageContentExtractor(fixedPageTree.DocumentElement);
System\Windows\Data\XmlDataProvider.cs (2)
514XmlNode root = doc.DocumentElement; 769if (doc.DocumentElement != null)
ReachFramework (17)
PrintConfig\PrintSchemaShim.cs (3)
143ticket.XmlDoc.DocumentElement.AppendChild(parameterInitElem); 158XPathNavigator docNavigator = ticket.XmlDoc.DocumentElement.CreateNavigator(); 462prefix = PrintTicketEditor.AddStdNamespaceDeclaration(ticket.XmlDoc.DocumentElement, "ns", xmlNamespace);
PrintConfig\PrtTicket_Base.cs (8)
75parentElement = _ownerPrintTicket.XmlDoc.DocumentElement; 94this._ownerPrintTicket.XmlDoc.DocumentElement, 125this._ownerPrintTicket.XmlDoc.DocumentElement); 269this._ownerPrintTicket.XmlDoc.DocumentElement); 282parentElement = this._ownerPrintTicket.XmlDoc.DocumentElement; 1021_ownerPrintTicket.XmlDoc.DocumentElement, 1214pt.XmlDoc.DocumentElement, 1235pt.XmlDoc.DocumentElement,
PrintConfig\PrtTicket_Editor.cs (5)
39XmlElement root = pt.XmlDoc.DocumentElement; 146XmlElement root = pt.XmlDoc.DocumentElement; 357string prefix = pt.XmlDoc.DocumentElement.GetPrefixOfNamespace(PrintSchemaNamespaces.Framework); 425string uri = xmlDoc.DocumentElement.GetNamespaceOfPrefix(prefix); 444string prefix = xmlDoc.DocumentElement.GetPrefixOfNamespace(URI);
PrintConfig\PrtTicket_Public.cs (1)
99_xmlDoc.InsertBefore(xmlDecl, _xmlDoc.DocumentElement);
System.Configuration.ConfigurationManager (8)
System\Configuration\DpapiProtectedConfigurationProvider.cs (2)
42return xmlDocument.DocumentElement; 56return xmlDocument.DocumentElement;
System\Configuration\ErrorInfoXmlDocument.cs (1)
81XmlNode xmlNode = doc.DocumentElement;
System\Configuration\NameValueFileSectionHandler.cs (3)
56if (section.Name != doc.DocumentElement.Name) 60doc.DocumentElement); 63result = NameValueSectionHandler.CreateStatic(result, doc.DocumentElement);
System\Configuration\ProtectedConfigurationSection.cs (2)
90XmlNode resultNode = provider.Decrypt(doc.DocumentElement); 108XmlNode encNode = provider.Encrypt(xmlDocument.DocumentElement);
System.Data.Common (24)
System\Data\DataSet.cs (4)
1600if (xdoc.DocumentElement == null) 1862DataSetName = xdoc.DocumentElement!.LocalName; 2277XmlElement root = xdoc.DocumentElement!; 2639topNode = xdoc.DocumentElement!;
System\Data\DataTable.cs (1)
6039topNode = xdoc.DocumentElement!;
System\Data\XmlDataLoader.cs (4)
291if (xdoc.DocumentElement == null) 338XmlElement e = xdoc.DocumentElement; 351LoadRows(topRow, xdoc.DocumentElement); 352AttachRows(topRow, xdoc.DocumentElement);
System\Xml\XmlDataDocument.cs (14)
208Debug.Assert(DocumentElement == null || !fLoadFromDataSet); 216if (DocumentElement != null) 458XmlElement? docelem = DocumentElement; 476XmlElement? docElem = DocumentElement; 492Debug.Assert(GetRowFromElement(DocumentElement) != null); 495XmlElement oldDocElem = DocumentElement!; 1217Debug.Assert(DocumentElement != null); 1218LoadRows(null, DocumentElement); 1219SyncRows(null, DocumentElement, true); 1390DataRow? rowDocElem = GetRowFromElement(DocumentElement); 1654if (rowElement == DocumentElement) 1732if (childElement == DocumentElement || childElement.ParentNode == null) 2263Debug.Assert(prevSibling != DocumentElement); 2276Debug.Assert(parent != DocumentElement); // We cannot promote children of the DocumentElement
System\Xml\XPathNodePointer.cs (1)
357XmlElement? rootElem = ((XmlDocument)_node).DocumentElement;
System.Private.Xml (6)
System\Xml\Dom\DocumentSchemaValidator.cs (1)
267XmlElement? docElem = ((XmlDocument)node).DocumentElement;
System\Xml\Dom\DocumentXPathNavigator.cs (1)
189XmlElement? element = _document.DocumentElement;
System\Xml\Dom\XmlDocument.cs (3)
478if (DocumentElement != null) 1391if (DocumentElement == null) 1744XmlElement? documentElement = DocumentElement;
System\Xml\Serialization\XmlSerializationWriter.cs (1)
786node = ((XmlDocument)node).DocumentElement!;
System.Security.Cryptography.Xml (5)
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
842XmlNode importedNode = inputElement.OwnerDocument.ImportNode(importDocument.DocumentElement!, true);
System\Security\Cryptography\Xml\Reference.cs (1)
456Utils.AddNamespaces(normDocument.DocumentElement!, _namespaces);
System\Security\Cryptography\Xml\SignedXml.cs (2)
106Initialize(document.DocumentElement); 804Utils.AddNamespaces(doc.DocumentElement!, namespaces);
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (1)
269Utils.AddNamespaces(_containingDocument!.DocumentElement!, PropagatedNamespaces);
System.Windows.Forms.Analyzers (1)
System\Windows\Forms\Analyzers\AppManifestAnalyzer.cs (1)
61if (doc.DocumentElement.SelectSingleNode("//v3:application/v3:windowsSettings/v3ws:dpiAware", nsMgr) is not null)