88 references to ChildNodes
Microsoft.AspNetCore.AzureAppServices.SiteExtension.Tests (4)
TransformTest.cs (4)
24Assert.Equal(2, doc.ChildNodes.Count); 29Assert.Equal(3, envNode.ChildNodes.Count); 54Assert.Equal(2, doc.ChildNodes.Count); 59Assert.Equal(3, envNode.ChildNodes.Count);
Microsoft.Build (11)
Construction\ProjectElement.cs (2)
369if (XmlElement.ChildNodes.Count == 1 && XmlElement.FirstChild.NodeType == XmlNodeType.Text) 407if (element.XmlElement.ChildNodes.Count == 1 && element.XmlElement.FirstChild.NodeType == XmlNodeType.Text)
Construction\ProjectElementContainer.cs (1)
628if (XmlElement.ChildNodes.Cast<XmlNode>().All(c => c.NodeType == XmlNodeType.Whitespace))
Construction\Solution\ProjectInSolution.cs (1)
316foreach (XmlNode childNode in projectDocument.ChildNodes)
Evaluation\Preprocessor.cs (1)
225foreach (XmlNode child in source.ChildNodes)
Evaluation\ProjectParser.cs (1)
632if (childElement.ChildNodes.Count == 1 && childElement.FirstChild.NodeType == XmlNodeType.Text)
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
138if (xml.XmlElement.ChildNodes.Count == 1 && xml.XmlElement.FirstChild.NodeType == XmlNodeType.Text)
SolutionConfiguration.cs (2)
72foreach (XmlNode dependencyNode in xmlElement.ChildNodes) 124return doc?.DocumentElement?.ChildNodes;
Utilities\Utilities.cs (1)
199if (node.ChildNodes.Count == 1 && (node.FirstChild.NodeType == XmlNodeType.Text || node.FirstChild.NodeType == XmlNodeType.CDATA))
Xml\ProjectXmlUtilities.cs (1)
104foreach (XmlNode child in element.ChildNodes)
Microsoft.Build.Engine.UnitTests (8)
Construction\ProjectRootElement_Tests.cs (8)
79var children = xml.XmlDocument.ChildNodes; 82Assert.Equal(2, children[0].ChildNodes.Count); 83Assert.Equal("Initial Comment", children[0].ChildNodes[0].Value); 84Assert.Equal("Ending Comment", children[0].ChildNodes[1].Value); 111var children = xml.XmlDocument.ChildNodes; 114Assert.Equal(2, children[0].ChildNodes.Count); 115Assert.Equal(string.Empty, children[0].ChildNodes[0].Value); 116Assert.Equal(string.Empty, children[0].ChildNodes[1].Value);
Microsoft.Build.Tasks.Core (6)
CodeTaskFactory.cs (2)
529foreach (XmlNode childNode in _taskNode.ChildNodes) 574foreach (XmlNode childNode in parentNode.ChildNodes)
ManifestUtil\SecurityUtil.cs (1)
426foreach (XmlNode xn in xe.ChildNodes)
ManifestUtil\XmlUtil.cs (1)
47foreach (XmlNode node in element.ChildNodes)
SolutionConfiguration.cs (2)
72foreach (XmlNode dependencyNode in xmlElement.ChildNodes) 124return doc?.DocumentElement?.ChildNodes;
Microsoft.Build.Tasks.UnitTests (1)
XmlPoke_Tests.cs (1)
114var testNodes = nodes?.First().ChildNodes.Cast<XmlElement>().ToList();
Microsoft.Build.Utilities.Core (5)
ApiContract.cs (1)
53foreach (XmlNode contractNode in element.ChildNodes)
PlatformManifest.cs (2)
109foreach (XmlNode childNode in doc.ChildNodes) 128foreach (XmlNode childNode in rootElement.ChildNodes)
SDKManifest.cs (2)
328foreach (XmlNode childNode in doc.ChildNodes) 341foreach (XmlNode childNode in rootElement.ChildNodes)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\CSharpPDBTestBase.cs (1)
56foreach (XmlElement item in entry.ChildNodes)
Microsoft.Web.Xdt.Extensions.Tests (8)
InsertOrAppendAttributeTests.cs (8)
21Assert.Equal(2, doc.ChildNodes.Count); 24Assert.Equal(2, configurationNode.ChildNodes.Count); 45Assert.Equal(2, doc.ChildNodes.Count); 48Assert.Equal(2, configurationNode.ChildNodes.Count); 69Assert.Equal(2, doc.ChildNodes.Count); 72Assert.Equal(2, configurationNode.ChildNodes.Count); 93Assert.Equal(2, doc.ChildNodes.Count); 96Assert.Equal(2, configurationNode.ChildNodes.Count);
PresentationBuildTasks (4)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (4)
632for (int i = 0; i < root.ChildNodes.Count; i++) 634XmlElement nodeGroup = root.ChildNodes[i] as XmlElement; 645for (int j = 0; j < nodeGroup.ChildNodes.Count; j++) 647XmlElement nodeItem = nodeGroup.ChildNodes[j] as XmlElement;
PresentationFramework (5)
MS\Internal\Globalization\BamlTreeMap.cs (1)
650foreach (XmlNode node in doc.DocumentElement.ChildNodes)
MS\Internal\Globalization\BamlTreeUpdater.cs (4)
438for (int i = 0; i < root.ChildNodes.Count && succeed; i++) 442root.ChildNodes[i], 585for (int i = 0; i < child.ChildNodes.Count && succeed; i++) 589child.ChildNodes[i],
PresentationFramework-SystemXml (3)
SystemXmlExtension.cs (3)
151for (int i = 0; i < node.ChildNodes.Count; i++) 153if (node.ChildNodes[i].NodeType == XmlNodeType.Text) 155value += node.ChildNodes[i].Value;
System.Configuration.ConfigurationManager (5)
System\Configuration\DictionarySectionHandler.cs (1)
40foreach (XmlNode child in section.ChildNodes)
System\Configuration\DpapiProtectedConfigurationProvider.cs (1)
105foreach (XmlNode child in node.ChildNodes)
System\Configuration\LocalFileSettingsProvider.cs (1)
470foreach (XmlNode child in valueXml.ChildNodes)
System\Configuration\NameValueSectionHandler.cs (1)
44foreach (XmlNode child in section.ChildNodes)
System\Configuration\RuntimeConfigurationRecord.cs (1)
134foreach (XmlNode child in xmlNode.ChildNodes)
System.Data.Common (2)
System\Data\DataSet.cs (2)
2282if (root.ChildNodes.Count == 0 || ((root.ChildNodes.Count == 1) && root.FirstChild!.GetType() == typeof(System.Xml.XmlText)))
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\SchemaImporter.cs (2)
1291if (typeElement.ChildNodes.Count > 0) //Generic Type 1296foreach (XmlNode childNode in typeElement.ChildNodes)
System.Private.Xml (3)
System\Xml\Dom\XmlLoader.cs (1)
792if (node.ChildNodes.Count > 0)
System\Xml\Schema\Parser.cs (2)
242XmlNodeList list = _parentNode.ChildNodes; 461if (eref.ChildNodes.Count == 0)
System.Security.Cryptography.Xml (20)
System\Security\Cryptography\Xml\CanonicalizationDispatcher.cs (2)
32XmlNodeList childNodes = node.ChildNodes; 58XmlNodeList childNodes = node.ChildNodes;
System\Security\Cryptography\Xml\CanonicalXml.cs (2)
79XmlNodeList childNodes = currentNode.ChildNodes; 80XmlNodeList childNodesCanonical = currentNodeCanonical.ChildNodes;
System\Security\Cryptography\Xml\CanonicalXmlDocument.cs (2)
33foreach (XmlNode childNode in ChildNodes) 50foreach (XmlNode childNode in ChildNodes)
System\Security\Cryptography\Xml\CanonicalXmlElement.cs (2)
84XmlNodeList childNodes = ChildNodes; 157XmlNodeList childNodes = ChildNodes;
System\Security\Cryptography\Xml\DataObject.cs (1)
149foreach (XmlNode node in value.ChildNodes)
System\Security\Cryptography\Xml\ExcCanonicalXml.cs (2)
89XmlNodeList childNodes = currentNode.ChildNodes; 90XmlNodeList childNodesCanonical = currentNodeCanonical.ChildNodes;
System\Security\Cryptography\Xml\KeyInfo.cs (1)
90XmlNodeList nodeList2 = elem.ChildNodes;
System\Security\Cryptography\Xml\Reference.cs (1)
267transform.LoadInnerXml(transformElement.ChildNodes);
System\Security\Cryptography\Xml\SignedInfo.cs (2)
236if (canonicalizationMethodElement.ChildNodes.Count > 0) 237CanonicalizationMethodObject.LoadInnerXml(canonicalizationMethodElement.ChildNodes);
System\Security\Cryptography\Xml\TransformChain.cs (1)
195transform.LoadInnerXml(transformElement.ChildNodes);
System\Security\Cryptography\Xml\Utils.cs (1)
271XmlNodeList childNodes = rootNode.ChildNodes;
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (1)
134return element.ChildNodes;
System\Security\Cryptography\Xml\XmlDsigExcC14NTransform.cs (1)
105return element.ChildNodes;
System\Security\Cryptography\Xml\XmlDsigXPathTransform.cs (1)
115return document.ChildNodes;