62 references to OwnerElement
Microsoft.Build (1)
Xml\ProjectXmlUtilities.cs (1)
196ProjectErrorUtilities.ThrowInvalidProject(attribute.Location, "UnrecognizedAttribute", attribute.Name, attribute.OwnerElement.Name);
Microsoft.Build.Tasks.Core (3)
ManifestUtil\Manifest.cs (3)
407XmlNode publicKeyTokenNode = ((XmlAttribute)codeBaseNode).OwnerElement.SelectSingleNode(XPaths.dependencyPublicKeyTokenAttribute, nsmgr); 419XmlNode hashNode = ((XmlAttribute)codeBaseNode).OwnerElement.SelectSingleNode(XPaths.hashElement, nsmgr); 426XmlAttribute sizeAttribute = ((XmlAttribute)codeBaseNode).OwnerElement.Attributes[XmlUtil.TrimPrefix(XPaths.fileSizeAttribute)];
PresentationFramework (1)
MS\Internal\Annotations\XmlElementCollection.cs (1)
235current = attr.OwnerElement;
System.Data.Common (15)
System\Data\XmlDataLoader.cs (1)
244ownerNode = ((XmlAttribute)node).OwnerElement!;
System\Data\XmlToDatasetMap.cs (1)
441XmlNode? nodeRegion = (node.NodeType == XmlNodeType.Attribute) ? ((XmlAttribute)node).OwnerElement : node.ParentNode;
System\Xml\DataPointer.cs (1)
299XmlNode? n = ((XmlAttribute)_node).OwnerElement;
System\Xml\DataSetMappper.cs (1)
226node = ((XmlAttribute)node).OwnerElement;
System\Xml\XmlDataDocument.cs (2)
1508attr.OwnerElement!.Attributes.Remove(attr); 2685node = attr.OwnerElement;
System\Xml\XPathNodePointer.cs (9)
422curNode = ((XmlAttribute)curNode).OwnerElement!; 663XmlAttributeCollection attrs = ((XmlAttribute)_node).OwnerElement!.Attributes; 997n = ((XmlAttribute)_node).OwnerElement; 1019return ((XmlAttribute)node).OwnerElement; 1071XmlNode? parent = ((curNode.NodeType == XmlNodeType.Attribute) ? (((XmlAttribute)curNode).OwnerElement) : (curNode.ParentNode)); 1179curNode1 = ((curNode1.NodeType == XmlNodeType.Attribute) ? (((XmlAttribute)curNode1).OwnerElement) : (curNode1.ParentNode)); 1189curNode2 = ((curNode2.NodeType == XmlNodeType.Attribute) ? (((XmlAttribute)curNode2).OwnerElement) : (curNode2.ParentNode)); 1371node = ((XmlAttribute)node).OwnerElement; 1596node = attr.OwnerElement;
System.Private.Xml (42)
System\Xml\Dom\DocumentSchemaValidator.cs (2)
211node = ((XmlAttribute)node).OwnerElement; 551XmlElement parentElement = attributeToValidate.OwnerElement!;
System\Xml\Dom\DocumentXmlWriter.cs (2)
227_write = attr.OwnerElement; 277_write = attr.OwnerElement;
System\Xml\Dom\DocumentXPathNavigator.cs (13)
371node = attribute.OwnerElement; 582if (attribute.OwnerElement != _namespaceParent) 604while (PathHasDuplicateNamespace(attribute.OwnerElement, _namespaceParent, localName) 627while (PathHasDuplicateNamespace(attribute.OwnerElement, _namespaceParent, attribute.LocalName)); 846parent = attribute.IsNamespace ? _namespaceParent : attribute.OwnerElement; 868parent = attribute.IsNamespace ? _namespaceParent : attribute.OwnerElement; 984following = ((XmlAttribute)following).OwnerElement; 1065following = ((XmlAttribute)following).OwnerElement; 1286return attribute.OwnerElement; 1316XmlElement? element = ((XmlAttribute)node1).OwnerElement; 1838XmlElement? element = attribute.OwnerElement; 1869XmlElement? element = attribute.OwnerElement; 2084parent = attribute.OwnerElement;
System\Xml\Dom\XmlAttribute.cs (8)
146XmlElement? ownerElement = OwnerElement; 158XmlElement? ownerElement = OwnerElement; 366if (OwnerElement != null) 367return OwnerElement.BaseURI; 381if (OwnerElement != null) 382return OwnerElement.XmlSpace; 391if (OwnerElement != null) 392return OwnerElement.XmlLang;
System\Xml\Dom\XmlAttributeCollection.cs (7)
142if (node.OwnerElement != null) 161if (node.OwnerElement != null) 184if (refNode.OwnerElement != parent) 190if (newNode.OwnerElement != null) 213if (refNode.OwnerElement != parent) 219if (newNode.OwnerElement != null) 331attr.OwnerElement!.Attributes.Remove(attr);
System\Xml\Dom\XmlElement.cs (1)
312if (newAttr.OwnerElement != null)
System\Xml\Dom\XmlNamedNodemap.cs (2)
146oldParent = ((XmlAttribute)node).OwnerElement; 213oldParent = ((XmlAttribute)node).OwnerElement;
System\Xml\Dom\XmlNode.cs (3)
866n = ((XmlAttribute)n).OwnerElement; 1138node = ((XmlAttribute)node).OwnerElement; 1217node = ((XmlAttribute)node).OwnerElement;
System\Xml\Dom\XmlNodeReader.cs (4)
624_curNode = ((XmlAttribute)_curNode).OwnerElement!; 889node = ((XmlAttribute)node).OwnerElement; 975node = ((XmlAttribute)node).OwnerElement; 1028node = ((XmlAttribute)node).OwnerElement;