50 references to GetNamedItem
Microsoft.Build.Tasks.Core (38)
BootstrapperUtil\BootstrapperBuilder.cs (23)
557XmlAttribute cultureAttribute = (XmlAttribute)rootNode?.Attributes.GetNamedItem("Culture"); 671var relatedProductAttribute = (XmlAttribute)(relatedProductNode.Attributes.GetNamedItem("Code")); 717XmlAttribute relatedProductAttribute = (XmlAttribute)(relatedProduct.Attributes.GetNamedItem("Code")); 898var productCodeAttribute = (XmlAttribute)(baseNode.Attributes.GetNamedItem("ProductCode")); 1016var cultureAttribute = (XmlAttribute)mergeElement.Attributes.GetNamedItem("Culture"); 1150var targetAttribute = (XmlAttribute)(targetNode.Attributes.GetNamedItem(attribute.Name)); 1164var nameAttribute = (XmlAttribute)(packageFileNode.Attributes.GetNamedItem("Name")); 1240XmlAttribute keyAttribute = (XmlAttribute)(nextNode.Attributes.GetNamedItem(strSubNodeKey)); 1280if (mergeSubNode.Attributes.GetNamedItem(attribute.Name) == null) 1307var attribute = (XmlAttribute)(currentNode.Attributes.GetNamedItem("PackageFile")); 1312var targetPathAttribute = (XmlAttribute)(packageFileNode.Attributes.GetNamedItem("TargetPath")); 1347var attribute = (XmlAttribute)(currentNode.Attributes.GetNamedItem("String")); 1412var packageFileSource = (XmlAttribute)(packageFileNode.Attributes.GetNamedItem("SourcePath")); 1413var packageFileDestination = (XmlAttribute)(packageFileNode.Attributes.GetNamedItem("TargetPath")); 1414var packageFileName = (XmlAttribute)(packageFileNode.Attributes.GetNamedItem("Name")); 1415var packageFileCopy = (XmlAttribute)(packageFileNode.Attributes.GetNamedItem("CopyOnBuild")); 1563var sourceAttribute = (XmlAttribute)(node.Attributes.GetNamedItem("ProductCode")); 1575var attribute = (XmlAttribute)(node.Attributes.GetNamedItem(strAttributeName)); 1641var attribute = (XmlAttribute)(node.Attributes.GetNamedItem(attributeName)); 1763_results?.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.NoStringsForCulture", resourcesNode.Attributes.GetNamedItem("Culture").Value)); 1771XmlAttribute resourceIdAttribute = (XmlAttribute)stringNode.Attributes.GetNamedItem("Name"); 1904XmlAttribute oldNameAttribute = (XmlAttribute)(sourceNode.Attributes.GetNamedItem(sourceOldName)); 1905XmlAttribute newNameAttribute = (XmlAttribute)(sourceNode.Attributes.GetNamedItem(sourceNewName));
GenerateApplicationManifest.cs (1)
466var attr = (XmlAttribute)(node.Attributes.GetNamedItem("level"));
ManifestUtil\AssemblyIdentity.cs (6)
238XmlNode node = element.Attributes.GetNamedItem("name"); 240node = element.Attributes.GetNamedItem("version"); 242node = element.Attributes.GetNamedItem("publicKeyToken"); 244node = element.Attributes.GetNamedItem("language"); 246node = element.Attributes.GetNamedItem("processorArchitecture"); 248node = element.Attributes.GetNamedItem("type");
ManifestUtil\TrustInfo.cs (8)
41XmlAttribute sameSiteAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.sameSiteAttribute)); 71var unrestrictedAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.unrestrictedAttribute)); 93var unrestrictedAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.unrestrictedAttribute)); 108var idAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.idAttribute)); 134XmlAttribute idrefAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.permissionSetReferenceAttribute)); 155XmlAttribute unrestrictedAttribute = (XmlAttribute)psElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.unrestrictedAttribute)); 498XmlAttribute unrestrictedAttribute = (XmlAttribute)psElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.unrestrictedAttribute)); 510XmlAttribute sameSiteAttribute = (XmlAttribute)psElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.sameSiteAttribute));
Microsoft.ML.NugetPackageVersionUpdater (2)
Program.cs (2)
66var packageName = packageReferenceNodes.Item(i).Attributes.GetNamedItem("Include").InnerText; 71packageReferenceNodes.Item(i).Attributes.GetNamedItem("Version").InnerText = latestVersion;
System.Private.DataContractSerialization (7)
System\Runtime\Serialization\SchemaImporter.cs (7)
1026XmlNode? emitDefaultValueAttribute = defaultValueElement.Attributes.GetNamedItem(Globals.EmitDefaultValueAttribute); 1038XmlNode? nameAttribute = actualTypeElement.Attributes.GetNamedItem(Globals.ActualTypeNameAttribute); 1041XmlNode? nsAttribute = actualTypeElement.Attributes.GetNamedItem(Globals.ActualTypeNamespaceAttribute); 1285string? name = typeElement.Attributes.GetNamedItem(Globals.GenericNameAttribute)?.Value; 1288string? ns = typeElement.Attributes.GetNamedItem(Globals.GenericNamespaceAttribute)?.Value; 1303XmlNode? nestedLevelAttribute = argumentElement.Attributes.GetNamedItem(Globals.GenericParameterNestedLevelAttribute); 1318XmlNode? typeNestedLevelsAttribute = typeElement.Attributes.GetNamedItem(Globals.GenericParameterNestedLevelAttribute);
System.Private.Xml (1)
System\Xml\Dom\XmlDocument.cs (1)
1733return (XmlEntity?)(entities.GetNamedItem(name));
System.Runtime.Serialization.Schema (2)
System\Runtime\Serialization\Schema\XsdDataContractImporter.cs (2)
370XmlNode? nameAttribute = actualTypeElement.Attributes.GetNamedItem(ImportGlobals.ActualTypeNameAttribute); 373XmlNode? nsAttribute = actualTypeElement.Attributes.GetNamedItem(ImportGlobals.ActualTypeNamespaceAttribute);