4 overrides of OwnerDocument
System.Private.Xml (4)
System\Xml\Dom\XmlAttribute.cs (1)
100public override XmlDocument OwnerDocument
System\Xml\Dom\XmlDocument.cs (1)
421public override XmlDocument? OwnerDocument
System\Xml\Dom\XmlDocumentFragment.cs (1)
81public override XmlDocument OwnerDocument
System\Xml\Dom\XmlElement.cs (1)
124public override XmlDocument OwnerDocument
93 references to OwnerDocument
Microsoft.Build (3)
Evaluation\Preprocessor.cs (3)
222XmlDocument sourceDocument = source.OwnerDocument ?? (XmlDocument)source; 223XmlDocument destinationDocument = destination.OwnerDocument ?? (XmlDocument)destination; 268AddImplicitImportNodes(child.OwnerDocument.DocumentElement);
Microsoft.Build.Tasks.Core (11)
BootstrapperUtil\BootstrapperBuilder.cs (11)
566XmlNode resourcesNode = rootNode.OwnerDocument.ImportNode(rootNode, true); 568var newAttribute = (XmlAttribute)rootNode.OwnerDocument.ImportNode(cultureAttribute, false); 1143XmlAttribute attribute = targetNode.OwnerDocument.CreateAttribute(attributeName); 1171XmlAttribute sourcePathAttribute = packageFilesNode.OwnerDocument.CreateAttribute("SourcePath"); 1175XmlAttribute targetPathAttribute = packageFilesNode.OwnerDocument.CreateAttribute("TargetPath"); 1181XmlAttribute oldNameAttribute = packageFilesNode.OwnerDocument.CreateAttribute("OldName"); 1248mergeSubNode.AppendChild(mergeSubNode.OwnerDocument.ImportNode(nextNode, true)); 1252mergeSubNode.AppendChild(mergeSubNode.OwnerDocument.ImportNode(queryResultNode, true)); 1269mergeSubNode.AppendChild(mergeSubNode.OwnerDocument.ImportNode(nextNode, true)); 1513XmlAttribute sizeAttribute = packageFileNode.OwnerDocument.CreateAttribute("Size"); 1942XmlAttribute attrib = node.OwnerDocument.CreateAttribute(attributeName);
Microsoft.Maui.Controls.SourceGen (1)
CodeBehindGenerator.cs (1)
407 var hasXamlCompilationProcessingInstruction = GetXamlCompilationProcessingInstruction(root.OwnerDocument);
Microsoft.Web.Xdt.Extensions (1)
InsertOrAppendAttribute.cs (1)
134var attribute = targetNode.OwnerDocument.CreateAttribute(AttributeName);
PresentationFramework (1)
MS\Internal\Data\XmlBindingWorker.cs (1)
376XmlDocument doc = node.OwnerDocument;
System.Data.Common (7)
System\Xml\DataPointer.cs (3)
85Debug.Assert(_node == _doc || _node.OwnerDocument == _doc); 96Debug.Assert(node == _doc || node.OwnerDocument == _doc); 107Debug.Assert(node == _doc || node.OwnerDocument == _doc);
System\Xml\TreeIterator.cs (1)
16internal TreeIterator(XmlNode nodeTop) : base(((XmlDataDocument)(nodeTop.OwnerDocument!)).Mapper)
System\Xml\XmlDataDocument.cs (1)
2945Debug.Assert(node.OwnerDocument == this || node == this);
System\Xml\XPathNodePointer.cs (2)
479Debug.Assert(node == _doc || node.OwnerDocument == _doc); 488Debug.Assert(node == _doc || node.OwnerDocument == _doc);
System.Private.Xml (66)
System\Xml\Dom\DocumentXPathNavigator.cs (2)
1253ownerDocument = _source.OwnerDocument; 1834Debug.Assert(node == _document || node.OwnerDocument == _document, "Navigator switched documents");
System\Xml\Dom\XmlAttributeCollection.cs (13)
139if (node.OwnerDocument != null && node.OwnerDocument != parent.OwnerDocument) 157if (doc != null && doc != parent.OwnerDocument) 187if (newNode.OwnerDocument != null && newNode.OwnerDocument != parent.OwnerDocument) 216if (newNode.OwnerDocument != null && newNode.OwnerDocument != parent.OwnerDocument) 322XmlAttribute? defattr = parent.OwnerDocument!.GetDefaultAttribute((XmlElement)parent, retNode.Prefix, retNode.LocalName, retNode.NamespaceURI); 340if (parent.OwnerDocument == null) 343XmlName? attrname = parent.OwnerDocument.GetIDInfoByElement(parentElem.XmlName); 346parent.OwnerDocument.AddElementWithId(attr.Value, parentElem); //add the element into the hashtable 357if (parent.OwnerDocument == null) 360XmlName? attrname = parent.OwnerDocument.GetIDInfoByElement(parentElem.XmlName); 363parent.OwnerDocument.RemoveElementWithId(attr.Value, parentElem); //remove the element from the hashtable 387XmlDocument? doc = parent.OwnerDocument; 404XmlDocument? doc = parent.OwnerDocument;
System\Xml\Dom\XmlCDataSection.cs (4)
22return OwnerDocument!.strCDataSectionName; 31return OwnerDocument!.strCDataSectionName; 72Debug.Assert(OwnerDocument != null); 73return OwnerDocument.CreateCDataSection(Data);
System\Xml\Dom\XmlComment.cs (4)
19get { return OwnerDocument!.strCommentName; } 25get { return OwnerDocument!.strCommentName; } 37Debug.Assert(OwnerDocument != null); 38return OwnerDocument.CreateComment(Data);
System\Xml\Dom\XmlDeclaration.cs (2)
160Debug.Assert(OwnerDocument != null); 161return OwnerDocument.CreateXmlDeclaration(Version, Encoding, Standalone);
System\Xml\Dom\XmlDocumentType.cs (2)
61Debug.Assert(OwnerDocument != null); 62return OwnerDocument.CreateDocumentType(_name, _publicId, _systemId, _internalSubset);
System\Xml\Dom\XmlEntityReference.cs (5)
84Debug.Assert(OwnerDocument != null); 85XmlEntityReference eref = OwnerDocument.CreateEntityReference(_name); 110if (LastNode == null && node != null && node != OwnerDocument) 178return OwnerDocument!.BaseURI; 207XmlEntity? ent = OwnerDocument!.GetEntityNode(_name);
System\Xml\Dom\XmlLoader.cs (4)
585XmlDocument doc = dtNode.OwnerDocument!; 595_doc = dtNode.OwnerDocument; 750_doc = parentNode.OwnerDocument; 877_doc = eref.OwnerDocument;
System\Xml\Dom\XmlNode.cs (14)
43XmlDocument? doc = OwnerDocument; 190return parentNode.OwnerDocument; 265XmlDocument? childDoc = newChild.OwnerDocument; 266XmlDocument? thisDoc = OwnerDocument; 379XmlDocument? childDoc = newChild.OwnerDocument; 380XmlDocument? thisDoc = OwnerDocument; 582XmlDocument? thisDoc = OwnerDocument ?? this as XmlDocument; 591XmlDocument? childDoc = newChild.OwnerDocument; 959AppendChild(OwnerDocument!.CreateTextNode(value)); 1064return OwnerDocument!; 1272this.parentNode = OwnerDocument; 1315XmlDocument? doc = OwnerDocument; 1333OwnerDocument!.BeforeEvent(args); 1339OwnerDocument!.AfterEvent(args);
System\Xml\Dom\XmlNodeReader.cs (1)
92_doc = node.OwnerDocument!;
System\Xml\Dom\XmlProcessingInstruction.cs (2)
82Debug.Assert(OwnerDocument != null); 83return OwnerDocument.CreateProcessingInstruction(_target, _data);
System\Xml\Dom\XmlSignificantWhiteSpace.cs (4)
23return OwnerDocument!.strSignificantWhitespaceName; 32return OwnerDocument!.strSignificantWhitespaceName; 72Debug.Assert(OwnerDocument != null); 73return OwnerDocument.CreateSignificantWhitespace(Data);
System\Xml\Dom\XmlText.cs (5)
26return OwnerDocument!.strTextName; 35return OwnerDocument!.strTextName; 76Debug.Assert(OwnerDocument != null); 77return OwnerDocument.CreateTextNode(Data); 116XmlText newTextNode = OwnerDocument!.CreateTextNode(splitData);
System\Xml\Dom\XmlWhitespace.cs (4)
24return OwnerDocument!.strNonSignificantWhitespaceName; 33return OwnerDocument!.strNonSignificantWhitespaceName; 88Debug.Assert(OwnerDocument != null); 89return OwnerDocument.CreateWhitespace(Data);
System.Security.Cryptography.Xml (3)
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
849XmlNode dummy = parent.OwnerDocument!.CreateElement(parent.Prefix, parent.LocalName, parent.NamespaceURI);
System\Security\Cryptography\Xml\Utils.cs (2)
464if (node.OwnerDocument != null) 465return node.OwnerDocument;