375 references to XPathNodeType
dotnet-svcutil-lib (375)
FrameworkFork\Microsoft.Xml\Xml\Cache\XPathDocumentBuilder.cs (29)
26Text = XPathNodeType.Text, 27SignificantWhitespace = XPathNodeType.SignificantWhitespace, 28Whitespace = XPathNodeType.Whitespace, 102idx = NewNode(out page, XPathNodeType.Text, string.Empty, string.Empty, string.Empty, string.Empty); 112_idxParent = NewNode(out _pageParent, XPathNodeType.Root, string.Empty, string.Empty, string.Empty, baseUri); 157AddSibling(XPathNodeType.Element, localName, ns, prefix, baseUri); 209Debug.Assert(_pageParent[_idxParent].NodeType == XPathNodeType.Element); 284Debug.Assert(_idxParent == 0 || _pageParent[_idxParent].NodeType == XPathNodeType.Element); 285Debug.Assert(_idxSibling == 0 || _pageSibling[_idxSibling].NodeType == XPathNodeType.Attribute); 294AddSibling(XPathNodeType.Attribute, localName, namespaceName, prefix, string.Empty); 302Debug.Assert(_pageSibling[_idxSibling].NodeType == XPathNodeType.Attribute); 332AddSibling(XPathNodeType.Comment, string.Empty, string.Empty, string.Empty, string.Empty); 352AddSibling(XPathNodeType.ProcessingInstruction, name, string.Empty, string.Empty, baseUri); 440AddSibling(XPathNodeType.Text, string.Empty, string.Empty, string.Empty, string.Empty); 475Debug.Assert(_pageParent[_idxParent].NodeType == XPathNodeType.Element); 486Debug.Assert(_idxSibling == 0 || _pageSibling[_idxSibling].NodeType == XPathNodeType.Attribute); 489Debug.Assert(_idxParent == 0 || _pageParent[_idxParent].NodeType == XPathNodeType.Element); 622Debug.Assert(pageElem == null || pageElem[idxElem].NodeType == XPathNodeType.Element); 636pageNode[idxNode].Create(info, XPathNodeType.Namespace, idxElem); 647private int NewNode(out XPathNode[] page, XPathNodeType xptyp, string localName, string namespaceUri, string prefix, string baseUri) 652Debug.Assert(xptyp != XPathNodeType.Namespace); 719private void AddSibling(XPathNodeType xptyp, string localName, string namespaceUri, string prefix, string baseUri) 723Debug.Assert(xptyp != XPathNodeType.Root && xptyp != XPathNodeType.Namespace); 765AddSibling((XPathNodeType)textType, string.Empty, string.Empty, string.Empty, string.Empty); 889Debug.Assert((int)XPathNodeType.Text < (int)XPathNodeType.SignificantWhitespace); 890Debug.Assert((int)XPathNodeType.SignificantWhitespace < (int)XPathNodeType.Whitespace);
FrameworkFork\Microsoft.Xml\Xml\Cache\XPathDocumentIterator.cs (6)
117private XPathNodeType _typ; 122public XPathDocumentKindChildIterator(XPathDocumentNavigator parent, XPathNodeType typ) : base(parent) 186if (root.NodeType != XPathNodeType.Root) 243private XPathNodeType _typ; 249public XPathDocumentKindDescendantIterator(XPathDocumentNavigator root, XPathNodeType typ, bool matchSelf) : base(root) 255if (root.NodeType != XPathNodeType.Root)
FrameworkFork\Microsoft.Xml\Xml\Cache\XPathDocumentNavigator.cs (30)
83case XPathNodeType.Namespace: 84case XPathNodeType.Attribute: 85case XPathNodeType.Comment: 86case XPathNodeType.ProcessingInstruction: 90case XPathNodeType.Text: 100Debug.Assert(_pageCurrent[_idxCurrent].NodeType == XPathNodeType.Text); 119Debug.Assert(page[idx].NodeType == XPathNodeType.Element || page[idx].IsText); 156public override XPathNodeType NodeType 219case XPathNodeType.Element: 220case XPathNodeType.Root: 221case XPathNodeType.ProcessingInstruction: 362if (page[idx].NodeType != XPathNodeType.Namespace) 494Debug.Assert(page[idx].NodeType == XPathNodeType.Element); 570public override bool MoveToChild(XPathNodeType type) 575if (type != XPathNodeType.Text && type != XPathNodeType.All) 592public override bool MoveToNext(XPathNodeType type) 638public override bool MoveToFollowing(XPathNodeType type, XPathNavigator end) 645if (type == XPathNodeType.Text || type == XPathNodeType.All) 662if (type == XPathNodeType.Text) 687if (page[idx].NodeType == XPathNodeType.Element) 730public override XPathNodeIterator SelectChildren(XPathNodeType type) 751public override XPathNodeIterator SelectDescendants(XPathNodeType type, bool matchSelf) 873case XPathNodeType.Namespace: 877case XPathNodeType.Attribute: 958if (_idxParent != 0 && NodeType == XPathNodeType.Text) 973if (_idxParent != 0 && NodeType == XPathNodeType.Text) 1012public bool IsContentKindMatch(XPathNodeType typ) 1021public bool IsKindMatch(XPathNodeType typ)
FrameworkFork\Microsoft.Xml\Xml\Cache\XPathNode.cs (13)
67public XPathNodeType NodeType 69get { return (XPathNodeType)(_props & NodeTypeMask); } 227return NodeType == XPathNodeType.Element && 240return NodeType == XPathNodeType.Namespace && localName.Length == 3 && localName == "xml"; 292XPathNodeType xptyp = NodeType; 293return xptyp == XPathNodeType.Attribute || xptyp == XPathNodeType.Namespace; 361public void Create(XPathNodeInfoAtom info, XPathNodeType xptyp, int idxParent) 402Debug.Assert(NodeType == XPathNodeType.Element); 413Debug.Assert(NodeType == XPathNodeType.Element); 422public void SetParentProperties(XPathNodeType xptyp) 424if (xptyp == XPathNodeType.Attribute) 431if (xptyp == XPathNodeType.Element)
FrameworkFork\Microsoft.Xml\Xml\Cache\XPathNodeHelper.cs (23)
30Debug.Assert(pageElem[idxElem].NodeType == XPathNodeType.Element); 47if (pageElem[idxElem].NodeType == XPathNodeType.Element) 79Debug.Assert(pageNode[idxNode].NodeType == XPathNodeType.Attribute); 96if (idx != 0 && page[idx].NodeType == XPathNodeType.Attribute) 120while (page[idx].NodeType == XPathNodeType.Attribute) 234if (page[idx].NodeType != XPathNodeType.Attribute) 259public static bool GetContentChild(ref XPathNode[] pageNode, ref int idxNode, XPathNodeType typ) 277if (typ == XPathNodeType.Attribute) 297public static bool GetContentSibling(ref XPathNode[] pageNode, ref int idxNode, XPathNodeType typ) 304if (page[idx].NodeType != XPathNodeType.Attribute) 315Debug.Assert(typ != XPathNodeType.Attribute && typ != XPathNodeType.Namespace); 335Debug.Assert(pageNode[idxNode].NodeType != XPathNodeType.Attribute); 376if (pagePrec[idxPrec].NodeType != XPathNodeType.Attribute) 399if (page[idx].NodeType != XPathNodeType.Attribute) 422public static bool GetPreviousContentSibling(ref XPathNode[] pageNode, ref int idxNode, XPathNodeType typ) 470while (idx != 0 && page[idx].NodeType == XPathNodeType.Attribute); 519if (page[idx].NodeType == XPathNodeType.Element && (object)page[idx].LocalName == (object)localName) 608public static bool GetContentFollowing(ref XPathNode[] pageCurrent, ref int idxCurrent, XPathNode[] pageEnd, int idxEnd, XPathNodeType typ) 614Debug.Assert(typ != XPathNodeType.Text, "Text should be handled by GetTextFollowing in order to take into account collapsed text."); 615Debug.Assert(page[idx].NodeType != XPathNodeType.Attribute, "Current node should never be an attribute or namespace--caller should handle this case."); 684if (page[idx].IsText || (page[idx].NodeType == XPathNodeType.Element && page[idx].HasCollapsedText)) 695if (page[idx].IsText || (page[idx].NodeType == XPathNodeType.Element && page[idx].HasCollapsedText))
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriter.cs (12)
484XPathNodeType nodeType = navigator.NodeType; 488case XPathNodeType.Element: 516case XPathNodeType.Attribute: 519case XPathNodeType.Text: 522case XPathNodeType.SignificantWhitespace: 523case XPathNodeType.Whitespace: 526case XPathNodeType.Root: 529case XPathNodeType.Comment: 532case XPathNodeType.ProcessingInstruction: 535case XPathNodeType.Namespace: 554if (navigator.NodeType == XPathNodeType.Element) 588if (navigator.NodeType == XPathNodeType.Element)
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentSchemaValidator.cs (1)
147if (nodeToValidate.XPNodeType == XPathNodeType.Namespace) goto default;
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXPathNavigator.cs (13)
97public override XPathNodeType NodeType 103return (XPathNodeType)_source.XPNodeType; 944public override bool MoveToChild(XPathNodeType type) 1049public override bool MoveToFollowing(XPathNodeType type, XPathNavigator end) 1158public override bool MoveToNext(XPathNodeType type) 1329if (node1.XPNodeType == XPathNodeType.Attribute) 1331if (node2.XPNodeType == XPathNodeType.Attribute) 1357if (node2.XPNodeType == XPathNodeType.Attribute) 1471Debug.Assert(this.NodeType != XPathNodeType.Attribute && this.NodeType != XPathNodeType.Namespace && this.NodeType != XPathNodeType.All); 1489public override XPathNodeIterator SelectDescendants(XPathNodeType nt, bool includeSelf) 1491if (nt == XPathNodeType.Element)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlAttribute.cs (3)
392internal override XPathNodeType XPNodeType 398return XPathNodeType.Namespace; 400return XPathNodeType.Attribute;
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlCDATASection.cs (2)
90internal override XPathNodeType XPNodeType 94return XPathNodeType.Text;
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlCharacterData.cs (3)
195internal bool DecideXPNodeTypeForTextNodes(XmlNode node, ref XPathNodeType xnt) 210xnt = XPathNodeType.SignificantWhitespace; 214xnt = XPathNodeType.Text;
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlComment.cs (2)
56internal override XPathNodeType XPNodeType { get { return XPathNodeType.Comment; } }
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDocument.cs (2)
1757internal override XPathNodeType XPNodeType { get { return XPathNodeType.Root; } }
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDocumentFragment.cs (2)
198internal override XPathNodeType XPNodeType { get { return XPathNodeType.Root; } }
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlElement.cs (2)
624internal override XPathNodeType XPNodeType { get { return XPathNodeType.Element; } }
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNode.cs (2)
1368internal virtual XPathNodeType XPNodeType 1372return (XPathNodeType)(-1);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlProcessingInstruction.cs (2)
107internal override XPathNodeType XPNodeType { get { return XPathNodeType.ProcessingInstruction; } }
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlSignificantWhitespace.cs (3)
107internal override XPathNodeType XPNodeType 111XPathNodeType xnt = XPathNodeType.SignificantWhitespace;
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlText.cs (2)
135internal override XPathNodeType XPNodeType 139return XPathNodeType.Text;
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlWhitespace.cs (3)
107internal override XPathNodeType XPNodeType 111XPathNodeType xnt = XPathNodeType.Whitespace;
FrameworkFork\Microsoft.Xml\Xml\schema\AstTree.cs (4)
547return ((ast.TypeOfAxis == Axis.AxisType.Child) && (ast.NodeType == XPathNodeType.Element)); 552return ((ast.TypeOfAxis == Axis.AxisType.Attribute) && (ast.NodeType == XPathNodeType.Attribute)); 557return ((ast.TypeOfAxis == Axis.AxisType.DescendantOrSelf) && (ast.NodeType == XPathNodeType.All) && (ast.AbbrAxis)); 562return ((ast.TypeOfAxis == Axis.AxisType.Self) && (ast.NodeType == XPathNodeType.All) && (ast.AbbrAxis));
FrameworkFork\Microsoft.Xml\Xml\ValidateNames.cs (12)
467internal static void ValidateNameThrow(string prefix, string localName, string ns, XPathNodeType nodeKind, Flags flags) 478internal static bool ValidateName(string prefix, string localName, string ns, XPathNodeType nodeKind, Flags flags) 489private static bool ValidateNameInternal(string prefix, string localName, string ns, XPathNodeType nodeKind, Flags flags, bool throwOnError) 514case XPathNodeType.Element: 523case XPathNodeType.Attribute: 530goto case XPathNodeType.Element; 532case XPathNodeType.ProcessingInstruction: 557case XPathNodeType.Element: 558case XPathNodeType.Attribute: 559case XPathNodeType.Namespace: 572if (prefix.Length == 0 && nodeKind == XPathNodeType.Attribute) 602case XPathNodeType.ProcessingInstruction:
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\AbsoluteQuery.cs (1)
28if (context != null && context.NodeType == XPathNodeType.Root)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\AttributeQuery.cs (2)
17public AttributeQuery(Query qyParent, string Name, string Prefix, XPathNodeType Type) : base(qyParent, Name, Prefix, Type) { } 64if (context.NodeType == XPathNodeType.Attribute && matches(context))
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\Axis.cs (4)
19private XPathNodeType _nodeType; 41public Axis(AxisType axisType, AstNode input, string prefix, string name, XPathNodeType nodetype) 54: this(axisType, input, string.Empty, string.Empty, XPathNodeType.All) 71public XPathNodeType NodeType { get { return _nodeType; } }
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\baseaxisquery.cs (8)
22private XPathNodeType _typeTest; 36protected BaseAxisQuery(Query qyInput, string name, string prefix, XPathNodeType typeTest) 77protected XPathNodeType TypeTest { get { return _typeTest; } } 86TypeTest == XPathNodeType.All || 87TypeTest == XPathNodeType.Text && (e.NodeType == XPathNodeType.Whitespace || e.NodeType == XPathNodeType.SignificantWhitespace) 147if (TypeTest != XPathNodeType.Element)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CacheAxisQuery.cs (1)
18public CacheAxisQuery(Query qyInput, string name, string prefix, XPathNodeType typeTest) : base(qyInput, name, prefix, typeTest)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CacheChildrenQuery.cs (1)
31public CacheChildrenQuery(Query qyInput, string name, string prefix, XPathNodeType type) : base(qyInput, name, prefix, type)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\ChildrenQuery.cs (3)
19public ChildrenQuery(Query qyInput, string name, string prefix, XPathNodeType type) : base(qyInput, name, prefix, type) { } 42if (TypeTest == XPathNodeType.ProcessingInstruction) 69if (temp.NodeType != XPathNodeType.Attribute && temp.MoveToParent())
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\DescendantBaseQuery.cs (2)
17public DescendantBaseQuery(Query qyParent, string Name, string Prefix, XPathNodeType Type, bool matchSelf, bool abbrAxis) : base(qyParent, Name, Prefix, Type) 71if (TypeTest != XPathNodeType.Element)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\DescendantOverDescendantQuery.cs (1)
20public DescendantOverDescendantQuery(Query qyParent, bool matchSelf, string name, string prefix, XPathNodeType typeTest, bool abbrAxis) :
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\DescendantQuery.cs (2)
16internal DescendantQuery(Query qyParent, string Name, string Prefix, XPathNodeType Type, bool matchSelf, bool abbrAxis) 44if (TypeTest == XPathNodeType.ProcessingInstruction)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\followingquery.cs (3)
17public FollowingQuery(Query qyInput, string name, string prefix, XPathNodeType typeTest) : base(qyInput, name, prefix, typeTest) { } 54if (_input.NodeType == XPathNodeType.Attribute || _input.NodeType == XPathNodeType.Namespace)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\followingsibling.cs (1)
20public FollSiblingQuery(Query qyInput, string name, string prefix, XPathNodeType type) : base(qyInput, name, prefix, type)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\NamespaceQuery.cs (2)
17public NamespaceQuery(Query qyParent, string Name, string Prefix, XPathNodeType Type) : base(qyParent, Name, Prefix, Type) { } 62Debug.Assert(e.NodeType == XPathNodeType.Namespace);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\NodeFunctions.cs (1)
85if (nav.NodeType != XPathNodeType.Whitespace || _xsltContext.PreserveWhitespace(nav))
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\ParentQuery.cs (1)
16public ParentQuery(Query qyInput, string Name, string Prefix, XPathNodeType Type) : base(qyInput, Name, Prefix, Type) { }
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\precedingquery.cs (4)
30public PrecedingQuery(Query qyInput, string name, string prefix, XPathNodeType typeTest) : base(qyInput, name, prefix, typeTest) 64if (last.NodeType == XPathNodeType.Attribute || last.NodeType == XPathNodeType.Namespace) 76_workIterator = last.SelectDescendants(XPathNodeType.All, true);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\precedingsibling.cs (3)
28public PreSiblingQuery(Query qyInput, string name, string prefix, XPathNodeType typeTest) : base(qyInput, name, prefix, typeTest) { } 60if (input.NodeType == XPathNodeType.Attribute || input.NodeType == XPathNodeType.Namespace)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\Query.cs (2)
220if (last.NodeType == XPathNodeType.Namespace && curr.NodeType == XPathNodeType.Namespace)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\querybuilder.cs (4)
78input.TypeOfAxis == Axis.AxisType.DescendantOrSelf && input.NodeType == XPathNodeType.All 193if ((root.NodeType == XPathNodeType.All || root.NodeType == XPathNodeType.Element || root.NodeType == XPathNodeType.Attribute) && root.Prefix.Length == 0)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathAncestorIterator.cs (1)
15public XPathAncestorIterator(XPathNavigator nav, XPathNodeType type, bool matchSelf) : base(nav, type, matchSelf) { }
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathAncestorQuery.cs (2)
17public XPathAncestorQuery(Query qyInput, string name, string prefix, XPathNodeType typeTest, bool matchSelf) : base(qyInput, name, prefix, typeTest) 79if (TypeTest != XPathNodeType.Element)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathAxisIterator.cs (7)
16internal XPathNodeType type; 29public XPathAxisIterator(XPathNavigator nav, XPathNodeType type, bool matchSelf) : this(nav, matchSelf) 75type == XPathNodeType.All || 76type == XPathNodeType.Text && ( 77nav.NodeType == XPathNodeType.Whitespace || 78nav.NodeType == XPathNodeType.SignificantWhitespace 85nav.NodeType == XPathNodeType.Element &&
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathChildIterator.cs (1)
15public XPathChildIterator(XPathNavigator nav, XPathNodeType type) : base(nav, type, /*matchSelf:*/false) { }
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathDescendantIterator.cs (1)
13public XPathDescendantIterator(XPathNavigator nav, XPathNodeType type, bool matchSelf) : base(nav, type, matchSelf) { }
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathParser.cs (14)
389XPathNodeType nodeType = ( 390axisType == Axis.AxisType.Attribute ? XPathNodeType.Attribute : 392/* default: */ XPathNodeType.Element 406private AstNode ParseNodeTest(AstNode qyInput, Axis.AxisType axisType, XPathNodeType nodeType) 418_scanner.Name == "comment" ? XPathNodeType.Comment : 419_scanner.Name == "text" ? XPathNodeType.Text : 420_scanner.Name == "node" ? XPathNodeType.All : 421_scanner.Name == "processing-instruction" ? XPathNodeType.ProcessingInstruction : 422/* default: */ XPathNodeType.Root 424Debug.Assert(nodeType != XPathNodeType.Root); 429if (nodeType == XPathNodeType.ProcessingInstruction) 740XPathNodeType nodeType = ( 741axisType == Axis.AxisType.Attribute ? XPathNodeType.Attribute : 742/* default: */ XPathNodeType.Element
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathSelfQuery.cs (1)
14public XPathSelfQuery(Query qyInput, string Name, string Prefix, XPathNodeType Type) : base(qyInput, Name, Prefix, Type) { }
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathDocument.cs (3)
396Debug.Assert(pageElem[idxElem].NodeType == XPathNodeType.Element && pageNmsp[idxNmsp].NodeType == XPathNodeType.Namespace); 410Debug.Assert(pageElem[idxElem].NodeType == XPathNodeType.Element);
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigator.cs (113)
129case XPathNodeType.Element: 130case XPathNodeType.Attribute: 457if (NodeType != XPathNodeType.Element) 490if (NodeType != XPathNodeType.Element) 526XPathNodeType nt = NodeType; 527if ((nt != XPathNodeType.Element && scope != XmlNamespaceScope.Local) || nt == XPathNodeType.Attribute || nt == XPathNodeType.Namespace) 576public abstract XPathNodeType NodeType { get; } 610case XPathNodeType.Root: 611case XPathNodeType.Element: 729case XPathNodeType.Attribute: 730case XPathNodeType.Namespace: 761if (NodeType == XPathNodeType.Element && localName == LocalName && namespaceURI == NamespaceURI) 771public virtual bool MoveToChild(XPathNodeType type) 802case XPathNodeType.Attribute: 803case XPathNodeType.Namespace: 813case XPathNodeType.Attribute: 814case XPathNodeType.Namespace: 850while (NodeType != XPathNodeType.Element 857public virtual bool MoveToFollowing(XPathNodeType type) 862public virtual bool MoveToFollowing(XPathNodeType type, XPathNavigator end) 871case XPathNodeType.Attribute: 872case XPathNodeType.Namespace: 882case XPathNodeType.Attribute: 883case XPathNodeType.Namespace: 930if (NodeType == XPathNodeType.Element && localName == LocalName && namespaceURI == NamespaceURI) 937public virtual bool MoveToNext(XPathNodeType type) 1053case XPathNodeType.Root: 1060case XPathNodeType.Element: 1077case XPathNodeType.Attribute: 1098Debug.Assert(schemaType != null || this.NodeType == XPathNodeType.Root, "schemaType != null || this.NodeType == XPathNodeType.Root"); 1291public virtual XPathNodeIterator SelectChildren(XPathNodeType type) 1301public virtual XPathNodeIterator SelectAncestors(XPathNodeType type, bool matchSelf) 1311public virtual XPathNodeIterator SelectDescendants(XPathNodeType type, bool matchSelf) 1371XPathNodeType type = NodeType; 1372if (type == XPathNodeType.Root 1373|| type == XPathNodeType.Attribute 1374|| type == XPathNodeType.Namespace) 1403if (NodeType == XPathNodeType.Attribute) 1407else if (NodeType == XPathNodeType.Namespace) 1448case XPathNodeType.Root: 1449case XPathNodeType.Element: 1481case XPathNodeType.Attribute: 1482case XPathNodeType.Namespace: 1498case XPathNodeType.Root: 1499case XPathNodeType.Element: 1510case XPathNodeType.Attribute: 1724if (NodeType == XPathNodeType.Element && (object)localName == (object)LocalName && namespaceURI == NamespaceURI) 1732internal bool MoveToPrevious(XPathNodeType type) 1750if (NodeType == XPathNodeType.Root) 1765case XPathNodeType.Attribute: 1766case XPathNodeType.Namespace: 1800case XPathNodeType.Attribute: 1806case XPathNodeType.Namespace: 1923case XPathNodeType.Namespace: 1925case XPathNodeType.Attribute: 1934case XPathNodeType.Namespace: 1946case XPathNodeType.Attribute: 1991internal const int NoAttrNmspMask = AllMask & ~(1 << (int)XPathNodeType.Attribute) & ~(1 << (int)XPathNodeType.Namespace); 1992internal const int TextMask = (1 << (int)XPathNodeType.Text) | (1 << (int)XPathNodeType.SignificantWhitespace) | (1 << (int)XPathNodeType.Whitespace); 1994(1 << (int) XPathNodeType.Root), // Root 1995(1 << (int) XPathNodeType.Element), // Element 1999(1 << (int) XPathNodeType.SignificantWhitespace), // SignificantWhitespace 2000(1 << (int) XPathNodeType.Whitespace), // Whitespace 2001(1 << (int) XPathNodeType.ProcessingInstruction), // ProcessingInstruction 2002(1 << (int) XPathNodeType.Comment), // Comment 2006internal static int GetContentKindMask(XPathNodeType type) 2011internal static int GetKindMask(XPathNodeType type) 2013if (type == XPathNodeType.All) 2015else if (type == XPathNodeType.Text) 2021internal static bool IsText(XPathNodeType type) 2024return (uint)(type - XPathNodeType.Text) <= (XPathNodeType.Whitespace - XPathNodeType.Text); 2028private bool IsValidChildType(XPathNodeType type) 2032case XPathNodeType.Root: 2035case XPathNodeType.Element: 2036case XPathNodeType.SignificantWhitespace: 2037case XPathNodeType.Whitespace: 2038case XPathNodeType.ProcessingInstruction: 2039case XPathNodeType.Comment: 2043case XPathNodeType.Element: 2046case XPathNodeType.Element: 2047case XPathNodeType.Text: 2048case XPathNodeType.SignificantWhitespace: 2049case XPathNodeType.Whitespace: 2050case XPathNodeType.ProcessingInstruction: 2051case XPathNodeType.Comment: 2060private bool IsValidSiblingType(XPathNodeType type) 2064case XPathNodeType.Element: 2065case XPathNodeType.Text: 2066case XPathNodeType.SignificantWhitespace: 2067case XPathNodeType.Whitespace: 2068case XPathNodeType.ProcessingInstruction: 2069case XPathNodeType.Comment: 2072case XPathNodeType.Element: 2073case XPathNodeType.Text: 2074case XPathNodeType.SignificantWhitespace: 2075case XPathNodeType.Whitespace: 2076case XPathNodeType.ProcessingInstruction: 2077case XPathNodeType.Comment: 2252case XPathNodeType.Element: 2255case XPathNodeType.Attribute: 2256case XPathNodeType.Namespace: 2257case XPathNodeType.ProcessingInstruction: 2261case XPathNodeType.Text: 2262case XPathNodeType.Whitespace: 2263case XPathNodeType.SignificantWhitespace: 2264case XPathNodeType.Comment:
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigatorReader.cs (15)
69internal static XmlNodeType ToXmlNodeType(XPathNodeType typ) 208if (_nav.NodeType == XPathNodeType.Namespace) 222if (_nav.NodeType == XPathNodeType.Namespace && _nav.LocalName.Length == 0) 236if (_nav.NodeType == XPathNodeType.Namespace && _nav.LocalName.Length != 0) 425case XPathNodeType.Element: 427case XPathNodeType.Attribute: 472case XPathNodeType.Element: 474case XPathNodeType.Attribute: 642if (XPathNodeType.Attribute == _nav.NodeType) 646Debug.Assert(XPathNodeType.Namespace == _nav.NodeType); 987if (XPathNodeType.Root == _nav.NodeType) 996else if (XPathNodeType.Attribute == _nav.NodeType) 1033Debug.Assert(_nav.NodeType == XPathNodeType.Element, _nav.NodeType.ToString() + " == XPathNodeType.Element"); 1170public override XPathNodeType NodeType 1172get { return XPathNodeType.All; }