Base:
property
OwnerDocument
System.Xml.XmlNode.OwnerDocument
87 references to OwnerDocument
Microsoft.Build (8)
Construction\ProjectElement.cs (3)
334return (XmlDocumentWithLocation)XmlElement?.OwnerDocument; 390XmlElement.AppendChild(XmlElement.OwnerDocument.CreateTextNode(pureText)); 409XmlElement.AppendChild(XmlElement.OwnerDocument.CreateTextNode(element.XmlElement.FirstChild.Value));
ElementLocation\XmlElementWithLocation.cs (1)
96XmlDocumentWithLocation ownerDocumentWithLocation = (XmlDocumentWithLocation)OwnerDocument;
Evaluation\Preprocessor.cs (3)
169if (!_implicitImportsByProject.TryGetValue(documentElement.OwnerDocument, out implicitImports)) 182XmlElement xmlElement = (XmlElement)documentElement.OwnerDocument.ImportNode(import.ImportingElement.XmlElement, false); 208XmlElement xmlElement = (XmlElement)documentElement.InsertAfter(documentElement.OwnerDocument.ImportNode(import.ImportingElement.XmlElement, false), documentElement.LastChild);
XmlUtilities.cs (1)
36(XmlElementWithLocation)((XmlDocumentWithLocation)oldElement.OwnerDocument).CreateElement(newElementName, xmlNamespace ?? string.Empty, oldElement.Location);
Microsoft.Build.Engine (13)
Engine\BuildTask.cs (2)
602XmlElement newOutputElement = this.taskElement.OwnerDocument.CreateElement(XMakeElements.output, XMakeAttributes.defaultXmlNamespace); 646XmlElement newOutputElement = this.taskElement.OwnerDocument.CreateElement(XMakeElements.output, XMakeAttributes.defaultXmlNamespace);
Engine\ImportCollection.cs (1)
294XmlElement newImportElement = projectElement.OwnerDocument.CreateElement(XMakeElements.import, XMakeAttributes.defaultXmlNamespace);
Engine\Project.cs (1)
3687if (mainProjectElement.OwnerDocument.BaseURI.Length != 0)
Engine\Target.cs (1)
917XmlElement newTaskElement = this.targetElement.OwnerDocument.CreateElement(taskName, XMakeAttributes.defaultXmlNamespace);
Engine\TargetCollection.cs (1)
310XmlElement newTargetElement = projectElement.OwnerDocument.CreateElement(XMakeElements.target, XMakeAttributes.defaultXmlNamespace);
Items\BuildItemGroup.cs (1)
503ErrorUtilities.VerifyThrow(itemToAdd.ItemElement.OwnerDocument == xml.OwnerDocument, "Cannot add an Item with a different XML owner document.");
Properties\BuildPropertyGroup.cs (2)
267this.ownerDocument = propertyGroupElement.OwnerDocument; 1227error.VerifyThrow(propertyToAdd.PropertyElement.OwnerDocument == this.ownerDocument,
Shared\XmlUtilities.cs (2)
33? oldElement.OwnerDocument.CreateElement(newElementName) 34: oldElement.OwnerDocument.CreateElement(newElementName, xmlNamespace);
Xml\BuildItemGroupChildXml.cs (1)
320childToModify = element.OwnerDocument.CreateElement(name, XMakeAttributes.defaultXmlNamespace);
Xml\BuildItemGroupXml.cs (1)
93get { return element.OwnerDocument; }
Microsoft.Build.Tasks.Core (8)
BootstrapperUtil\BootstrapperBuilder.cs (6)
990mergeElement.Attributes.Append((XmlAttribute)(mergeElement.OwnerDocument.ImportNode(attribute, false))); 995var convertedAttribute = (XmlAttribute)(mergeElement.OwnerDocument.ImportNode(attribute, false)); 1549configElement.AppendChild(configElement.OwnerDocument.ImportNode(node, true)); 1920applicationElement = configElement.OwnerDocument.CreateElement("Application"); 1929XmlElement filesNode = applicationElement.OwnerDocument.CreateElement("Files"); 1930XmlElement fileNode = filesNode.OwnerDocument.CreateElement("File");
ManifestUtil\TrustInfo.cs (2)
44sameSiteAttribute = permissionSetElement.OwnerDocument.CreateAttribute(XmlUtil.TrimPrefix(XPaths.sameSiteAttribute)); 66XmlDocument document = permissionSetElement.OwnerDocument;
PresentationFramework (13)
MS\Internal\Annotations\XmlElementCollection.cs (13)
152Invariant.Assert(_xmlDocsRefCounts.ContainsKey(element.OwnerDocument), "Not registered on XmlElement"); 155_xmlDocsRefCounts[element.OwnerDocument]--; 159if (_xmlDocsRefCounts[element.OwnerDocument] == 0) 161element.OwnerDocument.NodeChanged -= OnNodeChanged; 162element.OwnerDocument.NodeInserted -= OnNodeChanged; 163element.OwnerDocument.NodeRemoved -= OnNodeChanged; 164_xmlDocsRefCounts.Remove(element.OwnerDocument); 182if (!_xmlDocsRefCounts.ContainsKey(element.OwnerDocument)) 186_xmlDocsRefCounts[element.OwnerDocument] = 1; 188element.OwnerDocument.NodeChanged += handler; 189element.OwnerDocument.NodeInserted += handler; 190element.OwnerDocument.NodeRemoved += handler; 195_xmlDocsRefCounts[element.OwnerDocument]++;
System.Data.Common (10)
System\Data\XDRSchema.cs (2)
92vn = node.OwnerDocument.FirstChild; 93vnRoof = node.OwnerDocument;
System\Xml\RegionIterator.cs (1)
23internal RegionIterator(XmlBoundElement rowElement) : base(((XmlDataDocument)(rowElement.OwnerDocument)).Mapper)
System\Xml\XmlBoundElement.cs (7)
180XmlDataDocument doc = (XmlDataDocument)OwnerDocument; 227XmlDataDocument doc = (XmlDataDocument)OwnerDocument; 235XmlDataDocument doc = (XmlDataDocument)OwnerDocument; 241XmlDataDocument doc = (XmlDataDocument)(OwnerDocument); 265DataPointer dp = new DataPointer((XmlDataDocument)OwnerDocument, this); 281DataPointer dp = new DataPointer((XmlDataDocument)OwnerDocument, this); 297XmlDataDocument doc = (XmlDataDocument)OwnerDocument;
System.Private.Xml (8)
System\Xml\Dom\XmlElement.cs (8)
54Debug.Assert(OwnerDocument != null); 55XmlDocument doc = OwnerDocument; 244lock (OwnerDocument.objLock) 284attr = OwnerDocument.CreateAttribute(name); 355attr = OwnerDocument.CreateAttribute(string.Empty, localName, namespaceURI); 387attr = OwnerDocument.CreateAttribute(string.Empty, localName, namespaceURI); 610AppendChild(OwnerDocument.CreateTextNode(value)); 638if (ns == OwnerDocument.strReservedXmlns)
System.Security.Cryptography.Xml (26)
System\Security\Cryptography\Xml\CanonicalXmlElement.cs (2)
59XmlAttribute nsattrib = (XmlAttribute)OwnerDocument.CreateAttribute(name); 131XmlAttribute nsattrib = (XmlAttribute)OwnerDocument.CreateAttribute(name);
System\Security\Cryptography\Xml\CipherData.cs (1)
106XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\CipherReference.cs (1)
83XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\DSAKeyValue.cs (1)
168XmlNamespaceManager xmlNamespaceManager = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\EncryptedData.cs (1)
20XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\EncryptedKey.cs (1)
59XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\EncryptedReference.cs (1)
122XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\EncryptedXml.cs (2)
842XmlNode importedNode = inputElement.OwnerDocument.ImportNode(importDocument.DocumentElement!, true); 899XmlElement elemED = encryptedData.GetXml(inputElement.OwnerDocument);
System\Security\Cryptography\Xml\EncryptionMethod.cs (1)
89XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (1)
279XmlNamespaceManager nsm = new XmlNamespaceManager(element.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\Reference.cs (4)
222XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable); 280referenceTarget = transformElement.OwnerDocument; 287referenceTarget = transformElement.OwnerDocument; 291referenceTarget = SignedXml!.GetIdElement(transformElement.OwnerDocument, idref);
System\Security\Cryptography\Xml\RSAKeyValue.cs (1)
123XmlNamespaceManager xmlNamespaceManager = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\Signature.cs (1)
151XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\SignedInfo.cs (1)
217XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\SignedXml.cs (1)
127_containingDocument = element?.OwnerDocument;
System\Security\Cryptography\Xml\TransformChain.cs (1)
179XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\Utils.cs (5)
479XmlAttribute nsattrib = (XmlAttribute)elem.OwnerDocument.CreateAttribute(name); 493XmlAttribute nsattrib = (XmlAttribute)elem.OwnerDocument.CreateAttribute(key); 524XmlAttribute nsattrib = elem.OwnerDocument.CreateAttribute(name); 537XmlAttribute nsattrib = elem.OwnerDocument.CreateAttribute("xmlns"); 557XmlAttribute nsattrib = elem.OwnerDocument.CreateAttribute(name);
System.Web.Services.Description (1)
System\Web\Services\Description\ServiceDescription.cs (1)
422XmlDocument d = documentation.OwnerDocument;