142 references to Element
System.Data.Common (13)
System\Xml\DataDocumentXPathNavigator.cs (6)
55return xnt == XPathNodeType.Element || xnt == XPathNodeType.Root ? _curNode.InnerText : _curNode.Value!; 72if (_curNode.NodeType != XPathNodeType.Element) 84_curNode.NodeType != XPathNodeType.Element ? 88_curNode.NodeType != XPathNodeType.Element ? 96_curNode.NodeType != XPathNodeType.Element ? 101_curNode.NodeType != XPathNodeType.Element ?
System\Xml\XPathNodePointer.cs (7)
29/*XmlNodeType.Element*/ (int)XPathNodeType.Element, 170return XPathNodeType.Element; 256if (xnt == XPathNodeType.Element || xnt == XPathNodeType.Root || xnt == XPathNodeType.Attribute) 694(xntChildInt == (int)XPathNodeType.Element || 698(int)XPathNodeType.Element => 699(xntChildInt == (int)XPathNodeType.Element || 717(int)XPathNodeType.Element => (c.ColumnMapping == MappingType.Element || c.ColumnMapping == MappingType.SimpleContent),
System.Private.Xml (128)
System\Xml\Cache\XPathDocumentBuilder.cs (6)
162AddSibling(XPathNodeType.Element, localName, ns, prefix, baseUri); 214Debug.Assert(_pageParent != null && _pageParent[_idxParent].NodeType == XPathNodeType.Element); 290Debug.Assert(_idxParent == 0 || (_pageParent != null && _pageParent[_idxParent].NodeType == XPathNodeType.Element)); 482Debug.Assert(_pageParent != null && _pageParent[_idxParent].NodeType == XPathNodeType.Element); 497Debug.Assert(_idxParent == 0 || (_pageParent != null && _pageParent[_idxParent].NodeType == XPathNodeType.Element)); 632Debug.Assert(pageElem == null || pageElem[idxElem].NodeType == XPathNodeType.Element);
System\Xml\Cache\XPathDocumentNavigator.cs (4)
120Debug.Assert(page[idx].NodeType == XPathNodeType.Element || page[idx].IsText); 218case XPathNodeType.Element: 496Debug.Assert(page[idx].NodeType == XPathNodeType.Element); 692if (page[idx].NodeType == XPathNodeType.Element)
System\Xml\Cache\XPathNode.cs (4)
225return NodeType == XPathNodeType.Element && 400Debug.Assert(NodeType == XPathNodeType.Element); 411Debug.Assert(NodeType == XPathNodeType.Element); 429if (xptyp == XPathNodeType.Element)
System\Xml\Cache\XPathNodeHelper.cs (5)
26Debug.Assert(pageElem[idxElem].NodeType == XPathNodeType.Element); 43if (pageElem[idxElem].NodeType == XPathNodeType.Element) 431if (page[idx].NodeType == XPathNodeType.Element && (object)page[idx].LocalName == (object?)localName) 598if (page[idx].IsText || (page[idx].NodeType == XPathNodeType.Element && page[idx].HasCollapsedText)) 609if (page[idx].IsText || (page[idx].NodeType == XPathNodeType.Element && page[idx].HasCollapsedText))
System\Xml\Core\XmlWriter.cs (3)
437case XPathNodeType.Element: 502if (navigator.NodeType == XPathNodeType.Element) 535if (navigator.NodeType == XPathNodeType.Element)
System\Xml\Core\XmlWriterAsync.cs (3)
437case XPathNodeType.Element: 502if (navigator.NodeType == XPathNodeType.Element) 535if (navigator.NodeType == XPathNodeType.Element)
System\Xml\Dom\DocumentXPathNavigator.cs (1)
1476if (nt == XPathNodeType.Element)
System\Xml\Dom\XmlElement.cs (1)
632internal override XPathNodeType XPNodeType { get { return XPathNodeType.Element; } }
System\Xml\Schema\Asttree.cs (1)
528return ((ast.TypeOfAxis == Axis.AxisType.Child) && (ast.NodeType == XPathNodeType.Element));
System\Xml\ValidateNames.cs (3)
476case XPathNodeType.Element: 492goto case XPathNodeType.Element; 519case XPathNodeType.Element:
System\Xml\XPath\Internal\QueryBuilder.cs (1)
191if ((root.NodeType == XPathNodeType.All || root.NodeType == XPathNodeType.Element || root.NodeType == XPathNodeType.Attribute) && root.Prefix.Length == 0)
System\Xml\XPath\Internal\XPathAxisIterator.cs (1)
81nav.NodeType == XPathNodeType.Element &&
System\Xml\XPath\Internal\XPathParser.cs (2)
383/* default: */ XPathNodeType.Element 729/* default: */ XPathNodeType.Element
System\Xml\XPath\XPathDocument.cs (2)
385Debug.Assert(pageElem[idxElem].NodeType == XPathNodeType.Element && pageNmsp[idxNmsp].NodeType == XPathNodeType.Namespace); 398Debug.Assert(pageElem[idxElem].NodeType == XPathNodeType.Element);
System\Xml\XPath\XPathNavigator.cs (19)
114case XPathNodeType.Element: 405if (NodeType != XPathNodeType.Element) 438if (NodeType != XPathNodeType.Element) 472if ((nt != XPathNodeType.Element && scope != XmlNamespaceScope.Local) || nt == XPathNodeType.Attribute || nt == XPathNodeType.Namespace) 556case XPathNodeType.Element: 706if (NodeType == XPathNodeType.Element && localName == LocalName && namespaceURI == NamespaceURI) 793while (NodeType != XPathNodeType.Element 871if (NodeType == XPathNodeType.Element && localName == LocalName && namespaceURI == NamespaceURI) 1001case XPathNodeType.Element: 1378case XPathNodeType.Element: 1425case XPathNodeType.Element: 1634if (NodeType == XPathNodeType.Element && atomizedLocalName == LocalName && namespaceURI == NamespaceURI) 1899(1 << (int) XPathNodeType.Element), // Element 1939case XPathNodeType.Element: 1947case XPathNodeType.Element: 1950case XPathNodeType.Element: 1968case XPathNodeType.Element: 1976case XPathNodeType.Element: 2152case XPathNodeType.Element:
System\Xml\XPath\XPathNavigatorReader.cs (3)
420case XPathNodeType.Element: 467case XPathNodeType.Element: 1028Debug.Assert(_nav.NodeType == XPathNodeType.Element, $"{_nav.NodeType} == XPathNodeType.Element");
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (1)
1051nodeType = (nd.NodeType == QilNodeType.ElementCtor) ? XPathNodeType.Element : XPathNodeType.Attribute;
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (6)
2801nameType = LoadNameAndType(XPathNodeType.Element, ndElem.Left, true, callChk); 2812nameType = LoadNameAndType(XPathNodeType.Element, ndElem.Left, false, callChk); 3277case XmlNodeKindFlags.Element: kindsRuntime = XPathNodeType.Element; break; 3304if ((kinds & XmlNodeKindFlags.Element) != 0) kindsUnion |= (1 << (int)XPathNodeType.Element); 4578case XmlNodeKindFlags.Element: return XPathNodeType.Element; 4595case QilNodeType.ElementCtor: return XPathNodeType.Element;
System\Xml\Xsl\Runtime\XmlNavigatorFilter.cs (2)
147filters[(int)XPathNodeType.Element] = new XmlNavTypeFilter(XPathNodeType.Element);
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (24)
163Debug.Assert(ValidateNames.ValidateName(prefix, localName, ns, XPathNodeType.Element, ValidateNames.Flags.All), "Name validation failed"); 166ConstructWithinContent(XPathNodeType.Element); 634WriteStartComputed(XPathNodeType.Element, tagName, prefixMappingsIndex); 642WriteStartComputed(XPathNodeType.Element, tagName, ns); 650WriteStartComputed(XPathNodeType.Element, navigator); 658WriteStartComputed(XPathNodeType.Element, name); 938Debug.Assert(navigator.NodeType == XPathNodeType.Element, "StartCopy should return true only for Element nodes."); 954if (navigator.NodeType == XPathNodeType.Element) 1044Debug.Assert(nodeType == XPathNodeType.Element, "StartCopy should return true only for Element nodes."); 1102case XPathNodeType.Element: 1205Debug.Assert(navigator.NodeType == XPathNodeType.Element); 1219Debug.Assert(navigator.NodeType == XPathNodeType.Element, "Only elements have namespaces to copy"); 1257Debug.Assert(rootType == XPathNodeType.Element || rootType == XPathNodeType.Comment || rootType == XPathNodeType.ProcessingInstruction); 1333case XmlState.EnumAttrs: return XPathNodeType.Element; 1334case XmlState.WithinContent: return XPathNodeType.Element; 1341return XPathNodeType.Element; 1451if (nodeType == XPathNodeType.Element) 1470if (nodeType == XPathNodeType.Element) 1493if (nodeType == XPathNodeType.Element) 1508prefix = (name.Namespace.Length != 0) ? RemapPrefix(string.Empty, name.Namespace, nodeType == XPathNodeType.Element) : string.Empty; 1511if (nodeType == XPathNodeType.Element) 1527prefix = (ns.Length != 0) ? RemapPrefix(string.Empty, ns, nodeType == XPathNodeType.Element) : string.Empty; 1568case XPathNodeType.Element: 1583goto case XPathNodeType.Element;
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (2)
766case XPathNodeType.Element: return code == XmlTypeCode.Element; 799case XPathNodeType.Element:
System\Xml\Xsl\Runtime\XmlSequenceWriter.cs (4)
209if (nodeType == XPathNodeType.Element) 242if (nav.NodeType == XPathNodeType.Element) 267if (nav.NodeType == XPathNodeType.Element) 282case XPathNodeType.Element:
System\Xml\Xsl\XPath\XPathParser.cs (1)
243/*else*/ XPathNodeType.Element
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (1)
145case XPathNodeType.Element:
System\Xml\Xsl\XsltOld\ApplyTemplatesAction.cs (1)
86case XPathNodeType.Element:
System\Xml\Xsl\XsltOld\AttributeSetAction.cs (1)
61case XPathNodeType.Element:
System\Xml\Xsl\XsltOld\BeginEvent.cs (1)
33if (_nodeType == XPathNodeType.Element)
System\Xml\Xsl\XsltOld\CallTemplateAction.cs (1)
51case XPathNodeType.Element:
System\Xml\Xsl\XsltOld\ChooseAction.cs (1)
34case XPathNodeType.Element:
System\Xml\Xsl\XsltOld\ContainerAction.cs (6)
160while (input.NodeType != XPathNodeType.Element) 168Debug.Assert(compiler.Input.NodeType == XPathNodeType.Element); 506case XPathNodeType.Element: 638if (input.NodeType == XPathNodeType.Element) 769case XPathNodeType.Element: 779this.AddEvent(new EndEvent(XPathNodeType.Element));
System\Xml\Xsl\XsltOld\CopyAction.cs (2)
76if (frame.Node!.NodeType == XPathNodeType.Element) 83if (frame.Node!.NodeType == XPathNodeType.Element && !_empty)
System\Xml\Xsl\XsltOld\CopyNodeSetAction.cs (1)
61if (nodeType == XPathNodeType.Element || nodeType == XPathNodeType.Root)
System\Xml\Xsl\XsltOld\ElementAction.cs (2)
125if (processor.BeginEvent(XPathNodeType.Element, qname.Prefix, qname.Name, qname.Namespace, _empty) == false) 144if (processor.EndEvent(XPathNodeType.Element) == false)
System\Xml\Xsl\XsltOld\ForEachAction.cs (1)
110case XPathNodeType.Element:
System\Xml\Xsl\XsltOld\Processor.cs (7)
591if (_stylesheet.Whitespace && n.NodeType == XPathNodeType.Element) 603Debug.Assert(nav.NodeType == XPathNodeType.Element); 621case XPathNodeType.Element: 847case XPathNodeType.Element: 877case XPathNodeType.Element: 906case XPathNodeType.Element: 940else if (navigator.NodeType == XPathNodeType.Element)
System\Xml\Xsl\XsltOld\RecordBuilder.cs (2)
146case XPathNodeType.Element: 223if (nodeType == XPathNodeType.Element)
System\Xml\Xsl\XsltOld\TemplateAction.cs (1)
169case XPathNodeType.Element:
System\Xml\Xsl\XsltOld\TemplateLookupAction.cs (1)
67case XPathNodeType.Element:
System.Private.Xml.Linq (1)
System\Xml\XPath\XNodeNavigator.cs (1)
207return XPathNodeType.Element;