98 references to SelectSingleNode
Microsoft.Build.Tasks.Core (57)
AddToWin32Manifest.cs (3)
186
XmlNode? assemblyNode = document.
SelectSingleNode
(XPaths.assemblyElement, xmlNamespaceManager);
212
XmlNode? assemblyNode = document.
SelectSingleNode
(XPaths.assemblyElement, xmlNamespaceManager);
250
private XmlNode? GetNode(XmlNode node, string localName, XmlNamespaceManager xmlNamespaceManager) => node.
SelectSingleNode
($"//*[local-name()='{localName}']", xmlNamespaceManager);
BootstrapperUtil\BootstrapperBuilder.cs (22)
894
XmlNode baseNode = productDoc.
SelectSingleNode
(BOOTSTRAPPER_PREFIX + ":Product", _xmlNamespaceManager);
902
XmlNode productNode = rootElement.
SelectSingleNode
(BOOTSTRAPPER_PREFIX + ":Product[@ProductCode='" + productCodeAttribute.Value + "']", _xmlNamespaceManager);
915
XmlNode packageFilesNode = baseNode.
SelectSingleNode
(BOOTSTRAPPER_PREFIX + ":PackageFiles", _xmlNamespaceManager);
916
XmlNode checksNode = baseNode.
SelectSingleNode
(BOOTSTRAPPER_PREFIX + ":InstallChecks", _xmlNamespaceManager);
917
XmlNode commandsNode = baseNode.
SelectSingleNode
(BOOTSTRAPPER_PREFIX + ":Commands", _xmlNamespaceManager);
950
XmlNode langNode = langDoc.
SelectSingleNode
(BOOTSTRAPPER_PREFIX + ":Package", _xmlNamespaceManager);
958
XmlNode packageFilesNodePackage = langElement.
SelectSingleNode
(BOOTSTRAPPER_PREFIX + ":PackageFiles", _xmlNamespaceManager);
959
checksNode = langElement.
SelectSingleNode
(BOOTSTRAPPER_PREFIX + ":InstallChecks", _xmlNamespaceManager);
960
commandsNode = langElement.
SelectSingleNode
(BOOTSTRAPPER_PREFIX + ":Commands", _xmlNamespaceManager);
1073
XmlNode packageFilesNode = node.
SelectSingleNode
(BOOTSTRAPPER_PREFIX + ":Package/" + BOOTSTRAPPER_PREFIX + ":PackageFiles", _xmlNamespaceManager);
1194
XmlNode node = element.
SelectSingleNode
(BOOTSTRAPPER_PREFIX + ":" + nodeName, _xmlNamespaceManager);
1203
XmlNode langNode = langElement.
SelectSingleNode
(BOOTSTRAPPER_PREFIX + ":" + strNodeName, _xmlNamespaceManager);
1204
XmlNode baseNode = baseElement.
SelectSingleNode
(BOOTSTRAPPER_PREFIX + ":" + strNodeName, _xmlNamespaceManager);
1294
return subNode.
SelectSingleNode
(strQuery, _xmlNamespaceManager);
1299
XmlNode packageFilesNode = node.
SelectSingleNode
(BOOTSTRAPPER_PREFIX + ":PackageFiles", _xmlNamespaceManager);
1309
XmlNode packageFileNode = packageFilesNode.
SelectSingleNode
(strQuery, _xmlNamespaceManager);
1321
XmlNode stringsNode = node.
SelectSingleNode
(BOOTSTRAPPER_PREFIX + ":Strings", _xmlNamespaceManager);
1332
XmlNode packageFilesNode = node.
SelectSingleNode
(BOOTSTRAPPER_PREFIX + ":PackageFiles", _xmlNamespaceManager);
1348
XmlNode stringNode = stringsNode.
SelectSingleNode
(string.Format(CultureInfo.InvariantCulture, stringNodeLookupTemplate, attribute.Value), _xmlNamespaceManager);
1409
XmlNode installChecksNode = node.
SelectSingleNode
(BOOTSTRAPPER_PREFIX + ":InstallChecks", _xmlNamespaceManager);
1419
XmlNode packageFilesNode = node.
SelectSingleNode
(BOOTSTRAPPER_PREFIX + ":PackageFiles", _xmlNamespaceManager);
1644
XmlNode stringNode = stringsNode.
SelectSingleNode
(string.Format(CultureInfo.InvariantCulture, stringNodeLookupTemplate, attribute.Value), _xmlNamespaceManager);
GenerateApplicationManifest.cs (1)
463
XmlNode node = (XmlElement)document.
SelectSingleNode
(XPaths.requestedExecutionLevelPath, nsmgr);
ManifestUtil\AssemblyIdentity.cs (1)
232
var element = (XmlElement)document.
SelectSingleNode
(XPaths.assemblyIdentityPath, nsmgr);
ManifestUtil\Manifest.cs (3)
392
codeBaseNode = document.
SelectSingleNode
(xpath, nsmgr);
407
XmlNode publicKeyTokenNode = ((XmlAttribute)codeBaseNode).OwnerElement.
SelectSingleNode
(XPaths.dependencyPublicKeyTokenAttribute, nsmgr);
419
XmlNode hashNode = ((XmlAttribute)codeBaseNode).OwnerElement.
SelectSingleNode
(XPaths.hashElement, nsmgr);
ManifestUtil\ManifestReader.cs (1)
33
XmlNode nameNode = comNode.
SelectSingleNode
(XPaths.fileNameAttribute, nsmgr);
ManifestUtil\mansign2.cs (14)
388
XmlNode assemblyIdentityNode = _manifestDom.
SelectSingleNode
("asm:assembly/asm:assemblyIdentity", nsm);
407
XmlElement assembly = manifestDom.
SelectSingleNode
("asm:assembly", nsm) as XmlElement;
408
XmlElement assemblyIdentity = manifestDom.
SelectSingleNode
("asm:assembly/asm:assemblyIdentity", nsm) as XmlElement;
415
XmlElement publisherIdentity = manifestDom.
SelectSingleNode
("asm:assembly/asm2:publisherIdentity", nsm) as XmlElement;
435
XmlElement signature = manifestDom.
SelectSingleNode
("asm:assembly/ds:Signature", nsm) as XmlElement;
451
XmlNode signatureNode = manifestDom.
SelectSingleNode
("asm:assembly/ds:Signature", nsm);
499
XmlElement assemblyIdentity = manifestDom.
SelectSingleNode
("asm:assembly/asm:assemblyIdentity", nsm) as XmlElement;
701
XmlElement assemblyIdentityNode = licenseDom.
SelectSingleNode
("r:license/r:grant/as:ManifestInformation/as:assemblyIdentity", nsm) as XmlElement;
708
XmlElement manifestInformationNode = licenseDom.
SelectSingleNode
("r:license/r:grant/as:ManifestInformation", nsm) as XmlElement;
714
XmlElement authenticodePublisherNode = licenseDom.
SelectSingleNode
("r:license/r:grant/as:AuthenticodePublisher/as:X509SubjectName", nsm) as XmlElement;
785
XmlElement issuerNode = licenseDom.
SelectSingleNode
("r:license/r:issuer", nsm) as XmlElement;
908
XmlElement signatureValueNode = licenseDom.
SelectSingleNode
("r:license/r:issuer/ds:Signature/ds:SignatureValue", nsm) as XmlElement;
955
XmlElement signatureNode = licenseDom.
SelectSingleNode
("r:license/r:issuer/ds:Signature", nsm) as XmlElement;
974
XmlElement signatureParent = manifestDom.
SelectSingleNode
("asm:assembly", nsm) as XmlElement;
ManifestUtil\TrustInfo.cs (12)
128
XmlElement defaultAssemblyRequestElement = (XmlElement)permissionSetElement.ParentNode.
SelectSingleNode
(XPaths.defaultAssemblyRequestElement, nsmgr);
196
XmlElement securityElement = (XmlElement)trustInfoElement?.
SelectSingleNode
(XPaths.securityElement, nsmgr);
197
XmlElement requestedPrivilegeElement = (XmlElement)securityElement?.
SelectSingleNode
(XPaths.requestedPrivilegeElement, nsmgr);
255
XmlElement inputRequestedExecutionLevel = (XmlElement)inputRequestedPrivilegeElement.
SelectSingleNode
(XPaths.requestedExecutionLevelElement, nsmgr);
321
var securityElement = (XmlElement)trustInfoElement.
SelectSingleNode
(XPaths.securityElement, nsmgr);
327
XmlElement applicationRequestMinimumElement = (XmlElement)securityElement.
SelectSingleNode
(XPaths.applicationRequestMinimumElement, nsmgr);
333
XmlElement permissionSetElement = (XmlElement)applicationRequestMinimumElement.
SelectSingleNode
(XPaths.permissionSetElement, nsmgr);
461
var trustInfoElement = (XmlElement)document.
SelectSingleNode
(xpath, nsmgr);
711
XmlElement assemblyElement = (XmlElement)document.
SelectSingleNode
(XPaths.assemblyElement, nsmgr);
717
var trustInfoElement = (XmlElement)assemblyElement.
SelectSingleNode
(XPaths.trustInfoElement, nsmgr);
760
var securityElement = (XmlElement)trustInfoElement.
SelectSingleNode
(XPaths.securityElement, nsmgr);
766
var applicationRequestMinimumElement = (XmlElement)securityElement.
SelectSingleNode
(XPaths.applicationRequestMinimumElement, nsmgr);
Microsoft.Extensions.Configuration.Xml (1)
XmlDocumentDecryptor.cs (1)
51
return (document.
SelectSingleNode
("//enc:EncryptedData", namespaceManager) != null);
Microsoft.Maui.Controls.SourceGen (1)
CodeBehindGenerator.cs (1)
155
var root = xmlDoc.
SelectSingleNode
("/*", nsmgr);
PresentationFramework-SystemXml (1)
SystemXmlExtension.cs (1)
130
result = node.
SelectSingleNode
(query, namespaceManager);
System.Security.Cryptography.Xml (37)
System\Security\Cryptography\Xml\CipherData.cs (2)
109
XmlNode? cipherValueNode = value.
SelectSingleNode
("enc:CipherValue", nsm);
110
XmlNode? cipherReferenceNode = value.
SelectSingleNode
("enc:CipherReference", nsm);
System\Security\Cryptography\Xml\CipherReference.cs (1)
85
XmlNode? transformsNode = value.
SelectSingleNode
("enc:Transforms", nsm);
System\Security\Cryptography\Xml\DSAKeyValue.cs (8)
171
XmlNode? dsaKeyValueElement = value.
SelectSingleNode
($"{xmlDsigNamespacePrefix}:{DSAKeyValueElementName}", xmlNamespaceManager);
177
XmlNode? yNode = dsaKeyValueElement.
SelectSingleNode
($"{xmlDsigNamespacePrefix}:{YElementName}", xmlNamespaceManager);
181
XmlNode? pNode = dsaKeyValueElement.
SelectSingleNode
($"{xmlDsigNamespacePrefix}:{PElementName}", xmlNamespaceManager);
182
XmlNode? qNode = dsaKeyValueElement.
SelectSingleNode
($"{xmlDsigNamespacePrefix}:{QElementName}", xmlNamespaceManager);
188
XmlNode? gNode = dsaKeyValueElement.
SelectSingleNode
($"{xmlDsigNamespacePrefix}:{GElementName}", xmlNamespaceManager);
189
XmlNode? jNode = dsaKeyValueElement.
SelectSingleNode
($"{xmlDsigNamespacePrefix}:{JElementName}", xmlNamespaceManager);
191
XmlNode? seedNode = dsaKeyValueElement.
SelectSingleNode
($"{xmlDsigNamespacePrefix}:{SeedElementName}", xmlNamespaceManager);
192
XmlNode? pgenCounterNode = dsaKeyValueElement.
SelectSingleNode
($"{xmlDsigNamespacePrefix}:{PgenCounterElementName}", xmlNamespaceManager);
System\Security\Cryptography\Xml\EncryptedData.cs (4)
29
XmlNode? encryptionMethodNode = value.
SelectSingleNode
("enc:EncryptionMethod", nsm);
38
XmlNode? keyInfoNode = value.
SelectSingleNode
("ds:KeyInfo", nsm);
43
XmlNode? cipherDataNode = value.
SelectSingleNode
("enc:CipherData", nsm);
51
XmlNode? encryptionPropertiesNode = value.
SelectSingleNode
("enc:EncryptionProperties", nsm);
System\Security\Cryptography\Xml\EncryptedKey.cs (6)
69
XmlNode? encryptionMethodNode = value.
SelectSingleNode
("enc:EncryptionMethod", nsm);
78
XmlNode? keyInfoNode = value.
SelectSingleNode
("ds:KeyInfo", nsm);
83
XmlNode? cipherDataNode = value.
SelectSingleNode
("enc:CipherData", nsm);
91
XmlNode? encryptionPropertiesNode = value.
SelectSingleNode
("enc:EncryptionProperties", nsm);
108
XmlNode? carriedKeyNameNode = value.
SelectSingleNode
("enc:CarriedKeyName", nsm);
115
XmlNode? referenceListNode = value.
SelectSingleNode
("enc:ReferenceList", nsm);
System\Security\Cryptography\Xml\EncryptedReference.cs (1)
124
XmlNode? transformsNode = value.
SelectSingleNode
("ds:Transforms", nsm);
System\Security\Cryptography\Xml\EncryptionMethod.cs (1)
95
XmlNode? keySizeNode = value.
SelectSingleNode
("enc:KeySize", nsm);
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (2)
308
XmlNode? x509IssuerNameNode = issuerSerialNode.
SelectSingleNode
("ds:X509IssuerName", nsm);
309
XmlNode? x509SerialNumberNode = issuerSerialNode.
SelectSingleNode
("ds:X509SerialNumber", nsm);
System\Security\Cryptography\Xml\Reference.cs (1)
273
XmlNode? signatureTag = transformElement.
SelectSingleNode
("ancestor::ds:Signature[1]", nsm);
System\Security\Cryptography\Xml\RSAKeyValue.cs (3)
126
XmlNode? rsaKeyValueElement = value.
SelectSingleNode
($"{xmlDsigNamespacePrefix}:{RSAKeyValueElementName}", xmlNamespaceManager);
136
Modulus = Convert.FromBase64String(rsaKeyValueElement.
SelectSingleNode
($"{xmlDsigNamespacePrefix}:{ModulusElementName}", xmlNamespaceManager)!.InnerText),
137
Exponent = Convert.FromBase64String(rsaKeyValueElement.
SelectSingleNode
($"{xmlDsigNamespacePrefix}:{ExponentElementName}", xmlNamespaceManager)!.InnerText)
System\Security\Cryptography\Xml\SignedInfo.cs (1)
250
XmlElement? signatureLengthElement = signatureMethodElement.
SelectSingleNode
("ds:HMACOutputLength", nsm) as XmlElement;
System\Security\Cryptography\Xml\XmlDsigEnvelopedSignatureTransform.cs (1)
148
XmlNode result = node.
SelectSingleNode
("ancestor-or-self::dsig:Signature[1]", _nsm!)!;
System\Security\Cryptography\Xml\XmlLicenseTransform.cs (6)
59
encryptionMethod = encryptedGrantList[i]!.
SelectSingleNode
("//r:encryptedGrant/enc:EncryptionMethod", _namespaceManager!) as XmlElement;
60
keyInfo = encryptedGrantList[i]!.
SelectSingleNode
("//r:encryptedGrant/dsig:KeyInfo", _namespaceManager!) as XmlElement;
61
cipherData = encryptedGrantList[i]!.
SelectSingleNode
("//r:encryptedGrant/enc:CipherData", _namespaceManager!) as XmlElement;
147
currentIssuerContext = Context.
SelectSingleNode
("ancestor-or-self::r:issuer[1]", _namespaceManager) as XmlElement;
151
signatureNode = currentIssuerContext.
SelectSingleNode
("descendant-or-self::dsig:Signature[1]", _namespaceManager) as XmlElement;
155
currentLicenseContext = currentIssuerContext.
SelectSingleNode
("ancestor-or-self::r:license[1]", _namespaceManager) as XmlElement;
System.Windows.Forms.Analyzers (1)
System\Windows\Forms\Analyzers\AppManifestAnalyzer.cs (1)
61
if (doc.DocumentElement.
SelectSingleNode
("//v3:application/v3:windowsSettings/v3ws:dpiAware", nsMgr) is not null)