111 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)
580if (doc.DocumentElement != null)
Microsoft.Build.Tasks.Core (22)
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\SecurityUtil.cs (5)
228return doc.DocumentElement; 269return doc.DocumentElement; 283XmlElement rootElement = doc.DocumentElement; 401return XmlToIdentityList(psDocument.DocumentElement); 413XmlElement psElement = XmlUtil.CloneElementToDocument(inputDocument.DocumentElement, outputDocument, XmlNamespaces.asmv2);
ManifestUtil\TrustInfo.cs (10)
161document.DocumentElement.Attributes.RemoveNamedItem(XmlUtil.TrimPrefix(XPaths.unrestrictedAttribute)); 162psElement = document.DocumentElement; 195XmlElement trustInfoElement = _inputTrustInfoDocument.DocumentElement; 320XmlElement trustInfoElement = document.DocumentElement; 601XmlElement permissionSetElement = outputDocument.DocumentElement; 610XmlElement permissionSetElement = permissionSetDocument.DocumentElement; 613if (outputDocument.DocumentElement == null) 620XmlElement oldPermissionSetElement = outputDocument.DocumentElement; 755XmlElement newTrustInfoElement = (XmlElement)document.ImportNode(_inputTrustInfoDocument.DocumentElement, true); 780var permissionSetElement = (XmlElement)document.ImportNode(permissionSetDocument.DocumentElement, true);
SolutionConfiguration.cs (1)
124return doc?.DocumentElement?.ChildNodes;
Microsoft.ML.NugetPackageVersionUpdater (1)
Program.cs (1)
62var packageReferenceNodes = csprojDoc.DocumentElement.SelectNodes(packageReferencePath);
PresentationBuildTasks (5)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (5)
629XmlNode root = xmlProjectDoc.DocumentElement; 721XmlNode root = xmlProjectDoc.DocumentElement; 776XmlNode root = xmlProjectDoc.DocumentElement; 809XmlNode root = xmlProjectDoc.DocumentElement; 886XmlNode nodeImport = xmlProjectDoc.CreateElement("Import", xmlProjectDoc.DocumentElement.NamespaceURI);
PresentationFramework (7)
MS\Internal\Globalization\BamlTreeMap.cs (2)
653if (doc != null && doc.DocumentElement != null) 655foreach (XmlNode node in doc.DocumentElement.ChildNodes)
MS\Internal\IO\Packaging\XamlFilter.cs (3)
356_xamlReader = new XmlNodeReader(_fixedPageDomTree.DocumentElement); 797fixedPageTree.DocumentElement.SetAttribute(_xmlLangAttribute, _xamlReader.XmlLang); 801_fixedPageContentExtractor = new FixedPageContentExtractor(fixedPageTree.DocumentElement);
System\Windows\Data\XmlDataProvider.cs (2)
520XmlNode root = doc.DocumentElement; 775if (doc.DocumentElement != null)
ReachFramework (17)
PrintConfig\PrintSchemaShim.cs (3)
147ticket.XmlDoc.DocumentElement.AppendChild(parameterInitElem); 162XPathNavigator docNavigator = ticket.XmlDoc.DocumentElement.CreateNavigator(); 466prefix = PrintTicketEditor.AddStdNamespaceDeclaration(ticket.XmlDoc.DocumentElement, "ns", xmlNamespace);
PrintConfig\PrtTicket_Base.cs (8)
83parentElement = _ownerPrintTicket.XmlDoc.DocumentElement; 102this._ownerPrintTicket.XmlDoc.DocumentElement, 133this._ownerPrintTicket.XmlDoc.DocumentElement); 277this._ownerPrintTicket.XmlDoc.DocumentElement); 290parentElement = this._ownerPrintTicket.XmlDoc.DocumentElement; 1029_ownerPrintTicket.XmlDoc.DocumentElement, 1222pt.XmlDoc.DocumentElement, 1243pt.XmlDoc.DocumentElement,
PrintConfig\PrtTicket_Editor.cs (5)
46XmlElement root = pt.XmlDoc.DocumentElement; 153XmlElement root = pt.XmlDoc.DocumentElement; 364string prefix = pt.XmlDoc.DocumentElement.GetPrefixOfNamespace(PrintSchemaNamespaces.Framework); 432string uri = xmlDoc.DocumentElement.GetNamespaceOfPrefix(prefix); 451string prefix = xmlDoc.DocumentElement.GetPrefixOfNamespace(URI);
PrintConfig\PrtTicket_Public.cs (1)
105_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)