223 references to Element
SMDiagnostics (13)
System\ServiceModel\Diagnostics\TraceXPathNavigator.cs (13)
25XPathNodeType state = XPathNodeType.Element; 90: base(XPathNodeType.Element, parent) 131if (child.NodeType == XPathNodeType.Element) 191if (node.NodeType == XPathNodeType.Element) 629case XPathNodeType.Element: 639this.state = XPathNodeType.Element; 643this.state = XPathNodeType.Element; 647this.state = XPathNodeType.Element; 662this.state = XPathNodeType.Element; 685case XPathNodeType.Element: 718case XPathNodeType.Element: 755case XPathNodeType.Element: 839case XPathNodeType.Element:
System.Data (13)
fx\src\data\System\NewXml\DataDocumentXPathNavigator.cs (6)
50if ( xnt == XPathNodeType.Element || xnt == XPathNodeType.Root ) 68if ( _curNode.NodeType != XPathNodeType.Element ) 83if ( _curNode.NodeType != XPathNodeType.Element ) 89if ( _curNode.NodeType != XPathNodeType.Element ) 102if ( _curNode.NodeType != XPathNodeType.Element ) 108if ( _curNode.NodeType != XPathNodeType.Element )
fx\src\data\System\NewXml\XPathNodePointer.cs (7)
41xmlNodeType_To_XpathNodeType_Map[(int)(XmlNodeType.Element)] = (int)XPathNodeType.Element; 168return XPathNodeType.Element; 240if ( xnt == XPathNodeType.Element || xnt == XPathNodeType.Root || xnt == XPathNodeType.Attribute ) 639return ( xntChildInt == (int)XPathNodeType.Element || 642case (int)XPathNodeType.Element: 643return ( xntChildInt == (int)XPathNodeType.Element || 661case (int)XPathNodeType.Element:
System.Data.Entity (36)
System\Data\Mapping\StorageMappingItemLoader.cs (36)
231if (!MoveToRootElement(nav) || (nav.NodeType != XPathNodeType.Element)) 298hasContainerMapping = nav.MoveToNext(XPathNodeType.Element); 303hasContainerMapping = nav.MoveToChild(XPathNodeType.Element); 404if (nav.MoveToChild(XPathNodeType.Element)) 433} while (nav.MoveToNext(XPathNodeType.Element)); 836if (nav.MoveToChild(XPathNodeType.Element)) 873} while (nav.MoveToNext(XPathNodeType.Element)); 1065if (!nav.MoveToChild(XPathNodeType.Element)) 1098} while (nav.MoveToNext(XPathNodeType.Element)); 1178if (nav.MoveToChild(XPathNodeType.Element)) 1194} while (nav.MoveToNext(XPathNodeType.Element)); 1458if (!nav.MoveToChild(XPathNodeType.Element)) 1484if (!nav.MoveToNext(XPathNodeType.Element)) 1561if (nav.MoveToChild(XPathNodeType.Element)) 1573} while (nav.MoveToNext(XPathNodeType.Element)); 1842if (nav.MoveToChild(XPathNodeType.Element)) 1904while (nav.MoveToNext(XPathNodeType.Element)); 2009if (nav.MoveToChild(XPathNodeType.Element)) 2022while (nav.MoveToNext(XPathNodeType.Element)); 2607if (nav.MoveToChild(XPathNodeType.Element)) 2620} while (nav.MoveToNext(XPathNodeType.Element)); 2667if (nav.MoveToChild(XPathNodeType.Element)) 2718} while (nav.MoveToNext(XPathNodeType.Element)); 2721nav.MoveToChild(XPathNodeType.Element); 2820} while (nav.MoveToNext(XPathNodeType.Element)); 2975if (cloneNav.MoveToChild(XPathNodeType.Element)) 2991nav.MoveToChild(XPathNodeType.Element); 2996while (nav.MoveToNext(XPathNodeType.Element)); 3073if (nav.MoveToChild(XPathNodeType.Element)) 3115} while (nav.MoveToNext(XPathNodeType.Element)); 3136nav.MoveToChild(XPathNodeType.Element); 3168} while (nav.MoveToNext(XPathNodeType.Element)); 3820if (nav.MoveToChild(XPathNodeType.Element)) 3850} while (nav.MoveToNext(XPathNodeType.Element)); 3910if (nav.MoveToChild(XPathNodeType.Element)) 3986} while (nav.MoveToNext(XPathNodeType.Element));
System.Data.SqlXml (69)
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (1)
956nodeType = (nd.NodeType == QilNodeType.ElementCtor) ? XPathNodeType.Element : XPathNodeType.Attribute;
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (6)
2598nameType = LoadNameAndType(XPathNodeType.Element, ndElem.Left, true, callChk); 2609nameType = LoadNameAndType(XPathNodeType.Element, ndElem.Left, false, callChk); 3045case XmlNodeKindFlags.Element: kindsRuntime = XPathNodeType.Element; break; 3071if ((kinds & XmlNodeKindFlags.Element) != 0) kindsUnion |= (1 << (int) XPathNodeType.Element); 4237case XmlNodeKindFlags.Element: return XPathNodeType.Element; 4252case QilNodeType.ElementCtor: return XPathNodeType.Element;
System\Xml\Xsl\Runtime\XmlNavigatorFilter.cs (2)
138TypeFilters[(int) XPathNodeType.Element] = new XmlNavTypeFilter(XPathNodeType.Element);
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (24)
154Debug.Assert(ValidateNames.ValidateName(prefix, localName, ns, XPathNodeType.Element, ValidateNames.Flags.All), "Name validation failed"); 157ConstructWithinContent(XPathNodeType.Element); 579WriteStartComputed(XPathNodeType.Element, tagName, prefixMappingsIndex); 586WriteStartComputed(XPathNodeType.Element, tagName, ns); 593WriteStartComputed(XPathNodeType.Element, navigator); 600WriteStartComputed(XPathNodeType.Element, name); 850Debug.Assert(navigator.NodeType == XPathNodeType.Element, "StartCopy should return true only for Element nodes."); 865if (navigator.NodeType == XPathNodeType.Element) 949Debug.Assert(nodeType == XPathNodeType.Element, "StartCopy should return true only for Element nodes."); 1000case XPathNodeType.Element: 1092Debug.Assert(navigator.NodeType == XPathNodeType.Element); 1105Debug.Assert(navigator.NodeType == XPathNodeType.Element, "Only elements have namespaces to copy"); 1139Debug.Assert(rootType == XPathNodeType.Element || rootType == XPathNodeType.Comment || rootType == XPathNodeType.ProcessingInstruction); 1208case XmlState.EnumAttrs: return XPathNodeType.Element; 1209case XmlState.WithinContent: return XPathNodeType.Element; 1216return XPathNodeType.Element; 1317if (nodeType == XPathNodeType.Element) 1335if (nodeType == XPathNodeType.Element) 1356if (nodeType == XPathNodeType.Element) 1370prefix = (name.Namespace.Length != 0) ? RemapPrefix(string.Empty, name.Namespace, nodeType == XPathNodeType.Element) : string.Empty; 1373if (nodeType == XPathNodeType.Element) 1387prefix = (ns.Length != 0) ? RemapPrefix(string.Empty, ns, nodeType == XPathNodeType.Element) : string.Empty; 1425case XPathNodeType.Element: 1440goto case XPathNodeType.Element;
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (2)
722case XPathNodeType.Element: return code == XmlTypeCode.Element; 752case XPathNodeType.Element:
System\Xml\Xsl\Runtime\XmlSequenceWriter.cs (4)
195if (nodeType == XPathNodeType.Element) { 222if (nav.NodeType == XPathNodeType.Element) 244if (nav.NodeType == XPathNodeType.Element) 257case XPathNodeType.Element:
System\Xml\Xsl\XPath\XPathParser.cs (1)
214/*else*/ XPathNodeType.Element
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (1)
135case XPathNodeType.Element :
System\Xml\Xsl\XsltOld\ApplyTemplatesAction.cs (1)
82case XPathNodeType.Element:
System\Xml\Xsl\XsltOld\AttributeSetAction.cs (1)
54case XPathNodeType.Element:
System\Xml\Xsl\XsltOld\BeginEvent.cs (1)
35if (nodeType == XPathNodeType.Element) {
System\Xml\Xsl\XsltOld\CallTemplateAction.cs (1)
46case XPathNodeType.Element:
System\Xml\Xsl\XsltOld\ChooseAction.cs (1)
32case XPathNodeType.Element:
System\Xml\Xsl\XsltOld\ContainerAction.cs (6)
139while (input.NodeType != XPathNodeType.Element) { 145Debug.Assert(compiler.Input.NodeType == XPathNodeType.Element); 427case XPathNodeType.Element: 533if (input.NodeType == XPathNodeType.Element) { 636case XPathNodeType.Element: 645this.AddEvent(new EndEvent(XPathNodeType.Element));
System\Xml\Xsl\XsltOld\CopyAction.cs (2)
74if ( frame.Node.NodeType == XPathNodeType.Element ) { 80if (frame.Node.NodeType == XPathNodeType.Element && !this.empty) {
System\Xml\Xsl\XsltOld\CopyNodesetAction.cs (1)
57if (nodeType == XPathNodeType.Element || nodeType == XPathNodeType.Root) {
System\Xml\Xsl\XsltOld\ElementAction.cs (2)
110if (processor.BeginEvent(XPathNodeType.Element, qname.Prefix, qname.Name, qname.Namespace, this.empty) == false) { 126if (processor.EndEvent(XPathNodeType.Element) == false) {
System\Xml\Xsl\XsltOld\ForeachAction.cs (1)
99case XPathNodeType.Element:
System\Xml\Xsl\XsltOld\Processor.cs (7)
540if (this.stylesheet.Whitespace && n.NodeType == XPathNodeType.Element) { 550Debug.Assert(nav.NodeType == XPathNodeType.Element); 564case XPathNodeType.Element : 763case XPathNodeType.Element: 791case XPathNodeType.Element: 818case XPathNodeType.Element: 850else if (navigator.NodeType == XPathNodeType.Element) {
System\Xml\Xsl\XsltOld\RecordBuilder.cs (2)
136case XPathNodeType.Element: 205if(nodeType == XPathNodeType.Element) {
System\Xml\Xsl\XsltOld\TemplateAction.cs (1)
153case XPathNodeType.Element:
System\Xml\Xsl\XsltOld\TemplateLookupAction.cs (1)
63case XPathNodeType.Element:
System.ServiceModel (18)
System\ServiceModel\Dispatcher\QuerySelectOp.cs (3)
101case XPathNodeType.Element: 297if (XPathNodeType.Element == contextNode.NodeType && this.MatchQName(contextNode)) 378if (XPathNodeType.Element == contextNode.NodeType && this.MatchQName(contextNode))
System\ServiceModel\Dispatcher\QuerySubExprEliminator.cs (1)
348if (nav.NodeType == XPathNodeType.Element)
System\ServiceModel\Dispatcher\SeekableMessageNavigator.cs (14)
86BlankDom[EnvelopeIndex].type = XPathNodeType.Element; 109BlankDom[HeaderIndex].type = XPathNodeType.Element; 442if (this.NodeType != XPathNodeType.Element) 498if (this.NodeType != XPathNodeType.Element) 700if (this.dom.nodes[this.location].type != XPathNodeType.Element) 759if (this.dom.nodes[this.location].type != XPathNodeType.Element) 784if (this.location == RootIndex || this.dom.nodes[this.location].type == XPathNodeType.Element) 805if (this.dom.nodes[this.location].type != XPathNodeType.Element) 852if (this.dom.nodes[this.location].type != XPathNodeType.Element) 1187this.nodes[i].type = XPathNodeType.Element; 1203this.nodes[bodyIndex].type = XPathNodeType.Element; 1462if (p.parent > NullIndex && p.parent < this.nextFreeIndex && this.nodes[p.parent].type == XPathNodeType.Element && this.nodes[p.elem].type == XPathNodeType.Namespace) 1617case XPathNodeType.Element: 1940this.nodes[n].type = XPathNodeType.Element;
System.Transactions (11)
System\Transactions\Trace\TraceXPathNavigator.cs (11)
26XPathNodeType state = XPathNodeType.Element; 256this.state = XPathNodeType.Element; 299this.state = XPathNodeType.Element; 336case XPathNodeType.Element: 340this.state = XPathNodeType.Element; 345this.state = XPathNodeType.Element; 349this.state = XPathNodeType.Element; 353this.state = XPathNodeType.Element; 368this.state = XPathNodeType.Element; 383case XPathNodeType.Element: 420case XPathNodeType.Element:
System.Xml (62)
System\Xml\Cache\XPathDocumentBuilder.cs (6)
149AddSibling(XPathNodeType.Element, localName, ns, prefix, baseUri); 196Debug.Assert(this.pageParent[this.idxParent].NodeType == XPathNodeType.Element); 264Debug.Assert(this.idxParent == 0 || this.pageParent[this.idxParent].NodeType == XPathNodeType.Element); 433Debug.Assert(this.pageParent[this.idxParent].NodeType == XPathNodeType.Element); 446Debug.Assert(this.idxParent == 0 || this.pageParent[this.idxParent].NodeType == XPathNodeType.Element); 566Debug.Assert(pageElem == null || pageElem[idxElem].NodeType == XPathNodeType.Element);
System\Xml\Cache\XPathDocumentNavigator.cs (4)
112Debug.Assert(page[idx].NodeType == XPathNodeType.Element || page[idx].IsText); 197case XPathNodeType.Element: 446Debug.Assert(page[idx].NodeType == XPathNodeType.Element); 620if (page[idx].NodeType == XPathNodeType.Element) {
System\Xml\Cache\XPathNode.cs (4)
207return NodeType == XPathNodeType.Element && 361Debug.Assert(NodeType == XPathNodeType.Element); 371Debug.Assert(NodeType == XPathNodeType.Element); 386if (xptyp == XPathNodeType.Element)
System\Xml\Cache\XPathNodeHelper.cs (5)
30Debug.Assert(pageElem[idxElem].NodeType == XPathNodeType.Element); 46if (pageElem[idxElem].NodeType == XPathNodeType.Element) { 465if (page[idx].NodeType == XPathNodeType.Element && (object) page[idx].LocalName == (object) localName) { 611if (page[idx].IsText || (page[idx].NodeType == XPathNodeType.Element && page[idx].HasCollapsedText)) 620if (page[idx].IsText || (page[idx].NodeType == XPathNodeType.Element && page[idx].HasCollapsedText))
System\Xml\Core\XmlWriter.cs (3)
446case XPathNodeType.Element: 505if (navigator.NodeType == XPathNodeType.Element) { 533if (navigator.NodeType == XPathNodeType.Element)
System\Xml\Core\XmlWriterAsync.cs (3)
398case XPathNodeType.Element: 457if (navigator.NodeType == XPathNodeType.Element) { 485if (navigator.NodeType == XPathNodeType.Element)
System\Xml\Dom\DocumentXPathNavigator.cs (1)
1219if ( nt == XPathNodeType.Element ) {
System\Xml\Dom\XmlElement.cs (1)
526internal override XPathNodeType XPNodeType { get { return XPathNodeType.Element; } }
System\Xml\Schema\Asttree.cs (1)
465return ((ast.TypeOfAxis == Axis.AxisType.Child) && (ast.NodeType == XPathNodeType.Element));
System\Xml\ValidateNames.cs (3)
493case XPathNodeType.Element: 507goto case XPathNodeType.Element; 531case XPathNodeType.Element:
System\Xml\XPath\Internal\BaseAxisQuery.cs (1)
126if (TypeTest != XPathNodeType.Element) {
System\Xml\XPath\Internal\DescendantBaseQuery.cs (1)
59if (TypeTest != XPathNodeType.Element) {
System\Xml\XPath\Internal\QueryBuilder.cs (1)
164if ((root.NodeType == XPathNodeType.All || root.NodeType == XPathNodeType.Element || root.NodeType == XPathNodeType.Attribute) && root.Prefix.Length == 0) {
System\Xml\XPath\Internal\XPathAncestorQuery.cs (1)
66if (TypeTest != XPathNodeType.Element) {
System\Xml\XPath\Internal\XPathAxisIterator.cs (1)
75nav.NodeType == XPathNodeType.Element &&
System\Xml\XPath\Internal\XPathParser.cs (2)
336/* default: */ XPathNodeType.Element 637/* default: */ XPathNodeType.Element
System\Xml\XPath\XPathDocument.cs (2)
357Debug.Assert(pageElem[idxElem].NodeType == XPathNodeType.Element && pageNmsp[idxNmsp].NodeType == XPathNodeType.Namespace); 370Debug.Assert(pageElem[idxElem].NodeType == XPathNodeType.Element);
System\Xml\XPath\XPathNavigator.cs (19)
106case XPathNodeType.Element: 363if (NodeType != XPathNodeType.Element) { 393if (NodeType != XPathNodeType.Element) { 425if ((nt != XPathNodeType.Element && scope != XmlNamespaceScope.Local) || nt == XPathNodeType.Attribute || nt == XPathNodeType.Namespace) { 500case XPathNodeType.Element: 632if (NodeType == XPathNodeType.Element && localName == LocalName && namespaceURI == NamespaceURI) 707while (NodeType != XPathNodeType.Element 774if (NodeType == XPathNodeType.Element && localName == LocalName && namespaceURI == NamespaceURI) 884case XPathNodeType.Element: 1208case XPathNodeType.Element: 1251case XPathNodeType.Element: 1436if (NodeType == XPathNodeType.Element && (object) localName == (object) LocalName && namespaceURI == NamespaceURI) 1670(1 << (int) XPathNodeType.Element), // Element 1704case XPathNodeType.Element: 1712case XPathNodeType.Element: 1714case XPathNodeType.Element: 1730case XPathNodeType.Element: 1737case XPathNodeType.Element: 1891case XPathNodeType.Element :
System\Xml\XPath\XPathNavigatorReader.cs (3)
366case XPathNodeType.Element: 407case XPathNodeType.Element: 887Debug.Assert( this.nav.NodeType == XPathNodeType.Element, this.nav.NodeType.ToString() + " == XPathNodeType.Element" );
System.Xml.Linq (1)
System\Xml\Linq\XNodeNavigator.cs (1)
181return XPathNodeType.Element;