209 references to Attribute
PresentationBuildTasks (3)
MS\Internal\MarkupCompiler\ParserExtension.cs (1)
417string attrName = (xmlReader.NodeType == XmlNodeType.Attribute) ? xmlReader.Name : null;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
1310case XmlNodeType.Attribute: // review this.
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
744_inAttribute = (Reader.NodeType == XmlNodeType.Attribute);
PresentationCore (2)
MS\Internal\FontFace\CompositeFontParser.cs (2)
199if (_reader.NodeType == XmlNodeType.Attribute) 206if (_reader.NodeType == XmlNodeType.Attribute)
PresentationFramework (1)
System\Windows\Annotations\Annotation.cs (1)
516if (reader.NodeType == XmlNodeType.Attribute)
System.Data.Common (22)
System\Data\XmlToDatasetMap.cs (1)
441XmlNode? nodeRegion = (node.NodeType == XmlNodeType.Attribute) ? ((XmlAttribute)node).OwnerElement : node.ParentNode;
System\Xml\DataPointer.cs (4)
297else if (_node.NodeType == XmlNodeType.Attribute) 392return XmlNodeType.Attribute; 518case XmlNodeType.Attribute: 624if (_node != null && _column == null && _node.NodeType == XmlNodeType.Attribute)
System\Xml\DataSetMappper.cs (2)
169if (node.NodeType == XmlNodeType.Attribute && mt == MappingType.Attribute) 224if (node.NodeType == XmlNodeType.Attribute)
System\Xml\XmlBoundElement.cs (1)
351case XmlNodeType.Attribute:
System\Xml\XmlDataDocument.cs (3)
1073XmlNodeType.Attribute => CreateAttribute(dp.Prefix, dp.LocalName, dp.NamespaceURI), 2275Debug.Assert(parent.NodeType != XmlNodeType.Attribute); // We need to get the grand-parent region 2953if (parent != null && parent.NodeType == XmlNodeType.Attribute)
System\Xml\XPathNodePointer.cs (11)
91private static bool IsNamespaceNode(XmlNodeType nt, string ns) => nt == XmlNodeType.Attribute && ns == StrReservedXmlns; 193if (nt == XmlNodeType.Element || nt == XmlNodeType.Attribute || nt == XmlNodeType.ProcessingInstruction) 227if (nt == XmlNodeType.Element || nt == XmlNodeType.Attribute || nt == XmlNodeType.ProcessingInstruction) 423if (curNode.NodeType == XmlNodeType.Attribute) 633if (_column == null && _node.NodeType != XmlNodeType.Attribute) 998if (_node.NodeType == XmlNodeType.Attribute) 1074XmlNode? parent = ((curNode.NodeType == XmlNodeType.Attribute) ? (((XmlAttribute)curNode).OwnerElement) : (curNode.ParentNode)); 1183curNode1 = ((curNode1.NodeType == XmlNodeType.Attribute) ? (((XmlAttribute)curNode1).OwnerElement) : (curNode1.ParentNode)); 1193curNode2 = ((curNode2.NodeType == XmlNodeType.Attribute) ? (((XmlAttribute)curNode2).OwnerElement) : (curNode2.ParentNode)); 1377if (nt == XmlNodeType.Attribute) 1603else if (_node.NodeType == XmlNodeType.Attribute)
System.IO.Packaging (1)
System\IO\Packaging\XmlCompatibilityReader.cs (1)
689_inAttribute = (Reader.NodeType == XmlNodeType.Attribute);
System.Private.DataContractSerialization (9)
System\Runtime\Serialization\ExtensionDataReader.cs (3)
162_nodeType = XmlNodeType.Attribute; 210if (_nodeType != XmlNodeType.Attribute) 289if (_nodeType == XmlNodeType.Attribute && MoveToNextAttribute())
System\Runtime\Serialization\Json\XmlJsonReader.cs (1)
319return (this.Node.NodeType == XmlNodeType.Attribute || this.Node is XmlAttributeTextNode);
System\Xml\XmlBaseReader.cs (2)
847if (_node.NodeType == XmlNodeType.Attribute) 2404: base(XmlNodeType.Attribute,
System\Xml\XmlDictionaryReader.cs (3)
395case XmlNodeType.Attribute: 552nodeType == XmlNodeType.Attribute; 572if (nodeType == XmlNodeType.Attribute /* || inAttributeText */)
System.Private.Xml (160)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
2403_nodetype = XmlNodeType.Attribute;
System\Xml\Core\ReadContentAsBinaryHelper.cs (1)
418case XmlNodeType.Attribute:
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (1)
340case XmlNodeType.Attribute:
System\Xml\Core\XmlReader.cs (10)
730case XmlNodeType.Attribute: 1110if (NodeType != XmlNodeType.Attribute && NodeType != XmlNodeType.Element) 1121if (NodeType == XmlNodeType.Attribute) 1213if (NodeType != XmlNodeType.Attribute && NodeType != XmlNodeType.Element) 1224if (NodeType == XmlNodeType.Attribute) 1308Debug.Assert(0 == (IsTextualNodeBitmap & (1 << (int)XmlNodeType.Attribute))); 1335Debug.Assert(0 != (CanReadContentAsBitmap & (1 << (int)XmlNodeType.Attribute))); 1362Debug.Assert(0 != (HasValueBitmap & (1 << (int)XmlNodeType.Attribute))); 1473case XmlNodeType.Attribute: 1789case XmlNodeType.Attribute:
System\Xml\Core\XmlReaderAsync.cs (6)
163case XmlNodeType.Attribute: 185if (NodeType != XmlNodeType.Attribute && NodeType != XmlNodeType.Element) 195if (NodeType == XmlNodeType.Attribute) 268if (NodeType != XmlNodeType.Attribute && NodeType != XmlNodeType.Element) 278if (NodeType == XmlNodeType.Attribute) 329case XmlNodeType.Attribute:
System\Xml\Core\XmlSubtreeReader.cs (6)
457Debug.Assert(_curNode.type == XmlNodeType.Attribute); 843case XmlNodeType.Attribute: 981case XmlNodeType.Attribute: 1331_nsAttributes[index] = new NodeData(XmlNodeType.Attribute, localName, attrPrefix, name, _xmlnsUri, ns); 1335_nsAttributes[index].Set(XmlNodeType.Attribute, localName, attrPrefix, name, _xmlnsUri, ns); 1574case XmlNodeType.Attribute:
System\Xml\Core\XmlSubtreeReaderAsync.cs (2)
249case XmlNodeType.Attribute: 387case XmlNodeType.Attribute:
System\Xml\Core\XmlTextReaderImpl.cs (13)
964return _curNode.type == XmlNodeType.Attribute ? _curNode.quoteChar : '"'; 1182else if (_curNode.type != XmlNodeType.Attribute) 1398case XmlNodeType.Attribute: 1424if (_curNode.type != XmlNodeType.Attribute) 2998case XmlNodeType.Attribute: 4978if (at.type == XmlNodeType.Attribute && at.prefix.Length > 0) 5321if (_fragmentType == XmlNodeType.Attribute) 7654newAttr.SetNamedNode(XmlNodeType.Attribute, _nameTable.Add(name)); 7696newAttr.SetNamedNode(XmlNodeType.Attribute, localName, prefix, nameWPrefix); 7714Debug.Assert(attr.type == XmlNodeType.Attribute); 8534Debug.Assert(_fragmentType == XmlNodeType.Attribute); 8539_curNode.type = XmlNodeType.Attribute; 8954case XmlNodeType.Attribute:
System\Xml\Core\XmlTextReaderImplAsync.cs (3)
360case XmlNodeType.Attribute: 2836if (_fragmentType == XmlNodeType.Attribute) 5330case XmlNodeType.Attribute:
System\Xml\Core\XmlTextReaderImplHelpers.cs (2)
426return type == XmlNodeType.Attribute && _isEmptyOrDefault; 430Debug.Assert(type == XmlNodeType.Attribute);
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
954case XmlNodeType.Attribute:
System\Xml\Core\XmlWriter.cs (1)
325else if (reader.NodeType != XmlNodeType.Attribute)
System\Xml\Core\XmlWriterAsync.cs (1)
246else if (reader.NodeType != XmlNodeType.Attribute)
System\Xml\Core\XsdCachingReader.cs (5)
387if (_cacheState != CachingReaderState.Replay || _cachedNode!.NodeType != XmlNodeType.Attribute) 556case XmlNodeType.Attribute: 592if (_cachedNode!.NodeType != XmlNodeType.Attribute) 657attInfo.Clear(XmlNodeType.Attribute); 666return _attributeEvents[attIndex] ??= new ValidatingReaderNodeData(XmlNodeType.Attribute);
System\Xml\Core\XsdCachingReaderAsync.cs (1)
122case XmlNodeType.Attribute:
System\Xml\Core\XsdValidatingReader.cs (19)
431case XmlNodeType.Attribute: 464XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 498XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 532XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 566XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 600XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 634XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 668XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 703XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 739XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 1535case XmlNodeType.Attribute: 1575if (NodeType == XmlNodeType.Attribute) 1727case XmlNodeType.Attribute: 1784case XmlNodeType.Attribute: 1814case XmlNodeType.Attribute: 1838case XmlNodeType.Attribute: 1869if (NodeType == XmlNodeType.Attribute) 2367if (nodeType == XmlNodeType.Attribute) 2740Debug.Assert(NodeType != XmlNodeType.Attribute);
System\Xml\Core\XsdValidatingReaderAsync.cs (4)
49XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 89XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 373case XmlNodeType.Attribute: 693if (nodeType == XmlNodeType.Attribute)
System\Xml\Dom\DocumentSchemaValidator.cs (3)
140case XmlNodeType.Attribute: 210case XmlNodeType.Attribute: 289case XmlNodeType.Attribute: //Top-level attribute
System\Xml\Dom\DocumentXPathNavigator.cs (18)
50case XmlNodeType.Attribute: 132case XmlNodeType.Attribute: 778if (_source.NodeType == XmlNodeType.Attribute) 906if (_source.NodeType == XmlNodeType.Attribute) 932if (_source.NodeType == XmlNodeType.Attribute) 970case XmlNodeType.Attribute: 982if (following.NodeType == XmlNodeType.Attribute) 1045case XmlNodeType.Attribute: 1064case XmlNodeType.Attribute: 1453if (nsAtom == null || _source.NodeType == XmlNodeType.Attribute) 1540case XmlNodeType.Attribute: 1563case XmlNodeType.Attribute: 1613case XmlNodeType.Attribute: 1664case XmlNodeType.Attribute: 1723case XmlNodeType.Attribute: 2257Debug.Assert(((XmlNode)nav.UnderlyingObject).NodeType != XmlNodeType.Attribute); 2311Debug.Assert(((XmlNode)nav.UnderlyingObject).NodeType != XmlNodeType.Attribute); 2369Debug.Assert(((XmlNode)nav.UnderlyingObject).NodeType != XmlNodeType.Attribute);
System\Xml\Dom\XmlAttribute.cs (1)
96get { return XmlNodeType.Attribute; }
System\Xml\Dom\XmlDocument.cs (5)
782if (parentType == XmlNodeType.Attribute) 807|| parentType == XmlNodeType.Attribute) 976case XmlNodeType.Attribute: 1121case XmlNodeType.Attribute: 1206return XmlNodeType.Attribute;
System\Xml\Dom\XmlLoader.cs (5)
88if (n.NodeType != XmlNodeType.Attribute) 173case XmlNodeType.Attribute: 251Debug.Assert(_reader!.NodeType == XmlNodeType.Attribute); 510case XmlNodeType.Attribute: 798ParsePartialContent(node, innerxmltext, XmlNodeType.Attribute);
System\Xml\Dom\XmlNamedNodemap.cs (2)
145if (node.NodeType == XmlNodeType.Attribute) 212if (node.NodeType == XmlNodeType.Attribute)
System\Xml\Dom\XmlNode.cs (5)
865case XmlNodeType.Attribute: 1029|| nt == XmlNodeType.Attribute) 1136else if (node.NodeType == XmlNodeType.Attribute) 1215else if (node.NodeType == XmlNodeType.Attribute) 1469case XmlNodeType.Attribute:
System\Xml\Dom\XmlNodeReader.cs (20)
76if (nt == XmlNodeType.Attribute) 114return XmlNodeType.Attribute; 186case XmlNodeType.Attribute: 305if (_curNode.NodeType == XmlNodeType.Attribute) 335else if (nt == XmlNodeType.Attribute 495XmlNodeType.Attribute => GetAttributeFromElement((XmlElement)_elemNode!, name), 517XmlNodeType.Attribute => GetAttributeFromElement((XmlElement)_elemNode!, name, ns), 533case XmlNodeType.Attribute: 593while (_curNode.NodeType != XmlNodeType.Attribute && ((_curNode = _curNode.ParentNode!) != null)) 620if (_bOnAttrVal && _curNode.NodeType != XmlNodeType.Attribute) 622if (_curNode.NodeType == XmlNodeType.Attribute) 665else if (nt == XmlNodeType.Attribute) 703case XmlNodeType.Attribute: 725if (nt == XmlNodeType.Attribute) 818if (_curNode.NodeType != XmlNodeType.Attribute) 830case XmlNodeType.Attribute: 887else if (node.NodeType == XmlNodeType.Attribute) 973else if (node.NodeType == XmlNodeType.Attribute) 1026else if (node.NodeType == XmlNodeType.Attribute) 1063if (_curNode.NodeType == XmlNodeType.Attribute)
System\Xml\Dom\XmlText.cs (1)
91if (parent != null && parent.NodeType == XmlNodeType.Attribute)
System\Xml\Schema\Inference\Infer.cs (1)
1202Debug.Assert(_xtr!.NodeType == XmlNodeType.Attribute);
System\Xml\Schema\Parser.cs (1)
418Debug.Assert(_reader!.NodeType == XmlNodeType.Attribute);
System\Xml\Schema\XmlSchemaValidator.cs (1)
1054attrData.NodeType = XmlNodeType.Attribute;
System\Xml\Serialization\XmlSerializationReader.cs (3)
1215else if (_r.NodeType == XmlNodeType.Attribute && _events.OnUnknownAttribute == null) 1241if (unknownNode.NodeType == XmlNodeType.Attribute) 1882if (Reader.NodeType == XmlNodeType.Attribute)
System\Xml\XPath\XPathNavigator.cs (1)
2110case XmlNodeType.Attribute:
System\Xml\XPath\XPathNavigatorReader.cs (4)
50XmlNodeType.Attribute, // XPathNodeType.Attribute 51XmlNodeType.Attribute, // XPathNodeType.Namespace 377_nodeType = XmlNodeType.Attribute; 686_nodeType = XmlNodeType.Attribute;
System\Xml\Xsl\Xslt\XsltInput.cs (3)
59public XmlNodeType NodeType { get { return _nodeType == XmlNodeType.Element && 0 < _currentRecord ? XmlNodeType.Attribute : _nodeType; } } 273Debug.Assert(_reader.NodeType == XmlNodeType.Attribute, "reader.NodeType == XmlNodeType.Attribute"); 1184Debug.Assert(input.NodeType == XmlNodeType.Element || input.NodeType == XmlNodeType.Attribute);
System\Xml\Xsl\XsltOld\ReaderOutput.cs (5)
296if (NodeType == XmlNodeType.Attribute || _currentInfo == _attributeValue) 391if (NodeType == XmlNodeType.Element || NodeType == XmlNodeType.Attribute || _currentInfo == _attributeValue) 456else if (NodeType == XmlNodeType.Attribute) 498else if (NodeType == XmlNodeType.Attribute) 546if (ReadState != ReadState.Interactive || NodeType != XmlNodeType.Attribute)
System\Xml\Xsl\XsltOld\RecordBuilder.cs (3)
332attribute.NodeType = XmlNodeType.Attribute; 377_currentInfo.NodeType = XmlNodeType.Attribute; 762ns.NodeType = XmlNodeType.Attribute;
System\Xml\Xsl\XsltOld\WriterOutput.cs (1)
68case XmlNodeType.Attribute:
System.Private.Xml.Linq (7)
System\Xml\Linq\XAttribute.cs (1)
127return XmlNodeType.Attribute;
System\Xml\Linq\XNodeReader.cs (2)
165case XmlNodeType.Attribute: 369case XmlNodeType.Attribute:
System\Xml\Schema\XNodeValidator.cs (2)
55case XmlNodeType.Attribute: 77if (nt == XmlNodeType.Attribute)
System\Xml\XPath\XNodeNavigator.cs (2)
208case XmlNodeType.Attribute: 276case XmlNodeType.Attribute:
System.Security.Cryptography.Xml (3)
System\Security\Cryptography\Xml\Utils.cs (3)
103return n.NodeType == XmlNodeType.Attribute && (n.Prefix.Equals("xmlns") || (n.Prefix.Length == 0 && n.LocalName.Equals("xmlns"))); 108return n.NodeType == XmlNodeType.Attribute && n.Prefix.Equals("xml"); 114bool b1 = n.NodeType == XmlNodeType.Attribute && n.Prefix.Length == 0 && n.LocalName.Equals("xmlns");
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
744_inAttribute = (Reader.NodeType == XmlNodeType.Attribute);