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