25 references to ImportNode
Microsoft.Build (3)
Evaluation\Preprocessor.cs (3)
182
XmlElement xmlElement = (XmlElement)documentElement.OwnerDocument.
ImportNode
(import.ImportingElement.XmlElement, false);
208
XmlElement xmlElement = (XmlElement)documentElement.InsertAfter(documentElement.OwnerDocument.
ImportNode
(import.ImportingElement.XmlElement, false), documentElement.LastChild);
348
XmlNode clone = destinationDocument.
ImportNode
(child, false /* shallow */); // ImportNode does a clone but unlike CloneNode it works across XmlDocuments
Microsoft.Build.Tasks.Core (15)
BootstrapperUtil\BootstrapperBuilder.cs (10)
566
XmlNode resourcesNode = rootNode.OwnerDocument.
ImportNode
(rootNode, true);
568
var newAttribute = (XmlAttribute)rootNode.OwnerDocument.
ImportNode
(cultureAttribute, false);
933
var baseElement = (XmlElement)(_document.
ImportNode
(baseNode, true));
954
XmlElement langElement = (XmlElement)(_document.
ImportNode
(langNode, true));
990
mergeElement.Attributes.Append((XmlAttribute)(mergeElement.OwnerDocument.
ImportNode
(attribute, false)));
995
var convertedAttribute = (XmlAttribute)(mergeElement.OwnerDocument.
ImportNode
(attribute, false));
1248
mergeSubNode.AppendChild(mergeSubNode.OwnerDocument.
ImportNode
(nextNode, true));
1252
mergeSubNode.AppendChild(mergeSubNode.OwnerDocument.
ImportNode
(queryResultNode, true));
1269
mergeSubNode.AppendChild(mergeSubNode.OwnerDocument.
ImportNode
(nextNode, true));
1549
configElement.AppendChild(configElement.OwnerDocument.
ImportNode
(node, true));
ManifestUtil\mansign2.cs (1)
786
issuerNode.AppendChild(licenseDom.
ImportNode
(xmlDigitalSignature, true));
ManifestUtil\TrustInfo.cs (4)
160
document.AppendChild(document.
ImportNode
(psElement, true));
621
XmlElement newPermissionSetElement = (XmlElement)outputDocument.
ImportNode
(permissionSetElement, true);
755
XmlElement newTrustInfoElement = (XmlElement)document.
ImportNode
(_inputTrustInfoDocument.DocumentElement, true);
780
var permissionSetElement = (XmlElement)document.
ImportNode
(permissionSetDocument.DocumentElement, true);
System.Private.Xml (1)
System\Xml\Serialization\XmlSerializationReader.cs (1)
878
doc.AppendChild(doc.
ImportNode
(n, true));
System.Security.Cryptography.Xml (6)
System\Security\Cryptography\Xml\DataObject.cs (1)
131
objectElement.AppendChild(document.
ImportNode
(node, true));
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
842
XmlNode importedNode = inputElement.OwnerDocument.
ImportNode
(importDocument.DocumentElement!, true);
System\Security\Cryptography\Xml\EncryptionProperty.cs (1)
79
return (document.
ImportNode
(_elemProp!, true) as XmlElement)!;
System\Security\Cryptography\Xml\KeyInfoClause.cs (1)
24
return (XmlElement)xmlDocument.
ImportNode
(keyInfo, true);
System\Security\Cryptography\Xml\KeyInfoNode.cs (1)
47
return (xmlDocument.
ImportNode
(_node!, true) as XmlElement)!;
System\Security\Cryptography\Xml\Transform.cs (1)
138
transformElement.AppendChild(document.
ImportNode
(node, true));