System\Xml\Cache\XPathDocumentBuilder.cs (29)
26Text = XPathNodeType.Text,
27SignificantWhitespace = XPathNodeType.SignificantWhitespace,
28Whitespace = XPathNodeType.Whitespace,
107idx = NewNode(out page, XPathNodeType.Text, string.Empty, string.Empty, string.Empty, string.Empty);
117_idxParent = NewNode(out _pageParent, XPathNodeType.Root, string.Empty, string.Empty, string.Empty, baseUri);
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));
291Debug.Assert(_idxSibling == 0 || (_pageSibling != null && _pageSibling[_idxSibling].NodeType == XPathNodeType.Attribute));
300AddSibling(XPathNodeType.Attribute, localName, namespaceName, prefix, string.Empty);
309Debug.Assert(_pageSibling[_idxSibling].NodeType == XPathNodeType.Attribute);
341AddSibling(XPathNodeType.Comment, string.Empty, string.Empty, string.Empty, string.Empty);
361AddSibling(XPathNodeType.ProcessingInstruction, name, string.Empty, string.Empty, baseUri);
447AddSibling(XPathNodeType.Text, string.Empty, string.Empty, string.Empty, string.Empty);
482Debug.Assert(_pageParent != null && _pageParent[_idxParent].NodeType == XPathNodeType.Element);
494Debug.Assert(_idxSibling == 0 || (_pageSibling != null && _pageSibling[_idxSibling].NodeType == XPathNodeType.Attribute));
497Debug.Assert(_idxParent == 0 || (_pageParent != null && _pageParent[_idxParent].NodeType == XPathNodeType.Element));
632Debug.Assert(pageElem == null || pageElem[idxElem].NodeType == XPathNodeType.Element);
646pageNode[idxNode].Create(info, XPathNodeType.Namespace, idxElem);
657private int NewNode(out XPathNode[] page, XPathNodeType xptyp, string localName, string namespaceUri, string prefix, string? baseUri)
662Debug.Assert(xptyp != XPathNodeType.Namespace);
730private void AddSibling(XPathNodeType xptyp, string localName, string namespaceUri, string prefix, string? baseUri)
734Debug.Assert(xptyp != XPathNodeType.Root && xptyp != XPathNodeType.Namespace);
779AddSibling((XPathNodeType)textType, string.Empty, string.Empty, string.Empty, string.Empty);
903Debug.Assert((int)XPathNodeType.Text < (int)XPathNodeType.SignificantWhitespace);
904Debug.Assert((int)XPathNodeType.SignificantWhitespace < (int)XPathNodeType.Whitespace);
System\Xml\Cache\XPathNodeHelper.cs (21)
26Debug.Assert(pageElem[idxElem].NodeType == XPathNodeType.Element);
43if (pageElem[idxElem].NodeType == XPathNodeType.Element)
75Debug.Assert(pageNode[idxNode].NodeType == XPathNodeType.Attribute);
92if (idx != 0 && page![idx].NodeType == XPathNodeType.Attribute)
116while (page[idx].NodeType == XPathNodeType.Attribute)
231if (page[idx].NodeType != XPathNodeType.Attribute)
256public static bool GetContentChild(ref XPathNode[] pageNode, ref int idxNode, XPathNodeType typ)
274if (typ == XPathNodeType.Attribute)
294public static bool GetContentSibling(ref XPathNode[] pageNode, ref int idxNode, XPathNodeType typ)
301if (page[idx].NodeType != XPathNodeType.Attribute)
312Debug.Assert(typ != XPathNodeType.Attribute && typ != XPathNodeType.Namespace);
332Debug.Assert(pageNode[idxNode].NodeType != XPathNodeType.Attribute);
374if (pagePrec[idxPrec].NodeType != XPathNodeType.Attribute)
410while (idx != 0 && page![idx].NodeType == XPathNodeType.Attribute);
431if (page[idx].NodeType == XPathNodeType.Element && (object)page[idx].LocalName == (object?)localName)
522public static bool GetContentFollowing(ref XPathNode[] pageCurrent, ref int idxCurrent, XPathNode[]? pageEnd, int idxEnd, XPathNodeType typ)
528Debug.Assert(typ != XPathNodeType.Text, "Text should be handled by GetTextFollowing in order to take into account collapsed text.");
529Debug.Assert(page[idx].NodeType != XPathNodeType.Attribute, "Current node should never be an attribute or namespace--caller should handle this case.");
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\ValidateNames.cs (12)
429internal static void ValidateNameThrow(string? prefix, string localName, string? ns, XPathNodeType nodeKind, Flags flags)
440internal static bool ValidateName(string? prefix, string localName, string? ns, XPathNodeType nodeKind, Flags flags)
451private static bool ValidateNameInternal(string? prefix, string localName, string? ns, XPathNodeType nodeKind, Flags flags, bool throwOnError)
476case XPathNodeType.Element:
485case XPathNodeType.Attribute:
492goto case XPathNodeType.Element;
494case XPathNodeType.ProcessingInstruction:
519case XPathNodeType.Element:
520case XPathNodeType.Attribute:
521case XPathNodeType.Namespace:
534if (prefix.Length == 0 && nodeKind == XPathNodeType.Attribute)
564case XPathNodeType.ProcessingInstruction:
System\Xml\XPath\XPathNavigator.cs (113)
114case XPathNodeType.Element:
115case XPathNodeType.Attribute:
405if (NodeType != XPathNodeType.Element)
438if (NodeType != XPathNodeType.Element)
471XPathNodeType nt = NodeType;
472if ((nt != XPathNodeType.Element && scope != XmlNamespaceScope.Local) || nt == XPathNodeType.Attribute || nt == XPathNodeType.Namespace)
521public abstract XPathNodeType NodeType { get; }
555case XPathNodeType.Root:
556case XPathNodeType.Element:
674case XPathNodeType.Attribute:
675case XPathNodeType.Namespace:
706if (NodeType == XPathNodeType.Element && localName == LocalName && namespaceURI == NamespaceURI)
716public virtual bool MoveToChild(XPathNodeType type)
747case XPathNodeType.Attribute:
748case XPathNodeType.Namespace:
758case XPathNodeType.Attribute:
759case XPathNodeType.Namespace:
793while (NodeType != XPathNodeType.Element
800public virtual bool MoveToFollowing(XPathNodeType type)
805public virtual bool MoveToFollowing(XPathNodeType type, XPathNavigator? end)
814case XPathNodeType.Attribute:
815case XPathNodeType.Namespace:
825case XPathNodeType.Attribute:
826case XPathNodeType.Namespace:
871if (NodeType == XPathNodeType.Element && localName == LocalName && namespaceURI == NamespaceURI)
878public virtual bool MoveToNext(XPathNodeType type)
994case XPathNodeType.Root:
1001case XPathNodeType.Element:
1018case XPathNodeType.Attribute:
1039Debug.Assert(schemaType != null || this.NodeType == XPathNodeType.Root, "schemaType != null || this.NodeType == XPathNodeType.Root");
1224public virtual XPathNodeIterator SelectChildren(XPathNodeType type)
1234public virtual XPathNodeIterator SelectAncestors(XPathNodeType type, bool matchSelf)
1244public virtual XPathNodeIterator SelectDescendants(XPathNodeType type, bool matchSelf)
1302XPathNodeType type = NodeType;
1303if (type == XPathNodeType.Root
1304|| type == XPathNodeType.Attribute
1305|| type == XPathNodeType.Namespace)
1332if (NodeType == XPathNodeType.Attribute)
1336else if (NodeType == XPathNodeType.Namespace)
1377case XPathNodeType.Root:
1378case XPathNodeType.Element:
1410case XPathNodeType.Attribute:
1411case XPathNodeType.Namespace:
1424case XPathNodeType.Root:
1425case XPathNodeType.Element:
1436case XPathNodeType.Attribute:
1634if (NodeType == XPathNodeType.Element && atomizedLocalName == LocalName && namespaceURI == NamespaceURI)
1642internal bool MoveToPrevious(XPathNodeType type)
1660if (NodeType == XPathNodeType.Root)
1675case XPathNodeType.Attribute:
1676case XPathNodeType.Namespace:
1710case XPathNodeType.Attribute:
1716case XPathNodeType.Namespace:
1827case XPathNodeType.Namespace:
1829case XPathNodeType.Attribute:
1838case XPathNodeType.Namespace:
1850case XPathNodeType.Attribute:
1895internal const int NoAttrNmspMask = AllMask & ~(1 << (int)XPathNodeType.Attribute) & ~(1 << (int)XPathNodeType.Namespace);
1896internal const int TextMask = (1 << (int)XPathNodeType.Text) | (1 << (int)XPathNodeType.SignificantWhitespace) | (1 << (int)XPathNodeType.Whitespace);
1898(1 << (int) XPathNodeType.Root), // Root
1899(1 << (int) XPathNodeType.Element), // Element
1903(1 << (int) XPathNodeType.SignificantWhitespace), // SignificantWhitespace
1904(1 << (int) XPathNodeType.Whitespace), // Whitespace
1905(1 << (int) XPathNodeType.ProcessingInstruction), // ProcessingInstruction
1906(1 << (int) XPathNodeType.Comment), // Comment
1910internal static int GetContentKindMask(XPathNodeType type)
1915internal static int GetKindMask(XPathNodeType type)
1917if (type == XPathNodeType.All)
1919else if (type == XPathNodeType.Text)
1925internal static bool IsText(XPathNodeType type)
1928return unchecked((uint)(type - XPathNodeType.Text)) <= (XPathNodeType.Whitespace - XPathNodeType.Text);
1932private bool IsValidChildType(XPathNodeType type)
1936case XPathNodeType.Root:
1939case XPathNodeType.Element:
1940case XPathNodeType.SignificantWhitespace:
1941case XPathNodeType.Whitespace:
1942case XPathNodeType.ProcessingInstruction:
1943case XPathNodeType.Comment:
1947case XPathNodeType.Element:
1950case XPathNodeType.Element:
1951case XPathNodeType.Text:
1952case XPathNodeType.SignificantWhitespace:
1953case XPathNodeType.Whitespace:
1954case XPathNodeType.ProcessingInstruction:
1955case XPathNodeType.Comment:
1964private bool IsValidSiblingType(XPathNodeType type)
1968case XPathNodeType.Element:
1969case XPathNodeType.Text:
1970case XPathNodeType.SignificantWhitespace:
1971case XPathNodeType.Whitespace:
1972case XPathNodeType.ProcessingInstruction:
1973case XPathNodeType.Comment:
1976case XPathNodeType.Element:
1977case XPathNodeType.Text:
1978case XPathNodeType.SignificantWhitespace:
1979case XPathNodeType.Whitespace:
1980case XPathNodeType.ProcessingInstruction:
1981case XPathNodeType.Comment:
2152case XPathNodeType.Element:
2155case XPathNodeType.Attribute:
2156case XPathNodeType.Namespace:
2157case XPathNodeType.ProcessingInstruction:
2161case XPathNodeType.Text:
2162case XPathNodeType.Whitespace:
2163case XPathNodeType.SignificantWhitespace:
2164case XPathNodeType.Comment:
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (40)
2801nameType = LoadNameAndType(XPathNodeType.Element, ndElem.Left, true, callChk);
2812nameType = LoadNameAndType(XPathNodeType.Element, ndElem.Left, false, callChk);
2843nameType = LoadNameAndType(XPathNodeType.Attribute, ndAttr.Left, true, callChk);
3237XPathNodeType kindsRuntime;
3277case XmlNodeKindFlags.Element: kindsRuntime = XPathNodeType.Element; break;
3278case XmlNodeKindFlags.Attribute: kindsRuntime = XPathNodeType.Attribute; break;
3279case XmlNodeKindFlags.Namespace: kindsRuntime = XPathNodeType.Namespace; break;
3280case XmlNodeKindFlags.PI: kindsRuntime = XPathNodeType.ProcessingInstruction; break;
3281case XmlNodeKindFlags.Comment: kindsRuntime = XPathNodeType.Comment; break;
3282case XmlNodeKindFlags.Document: kindsRuntime = XPathNodeType.Root; break;
3289kindsRuntime = XPathNodeType.All;
3297if (kindsRuntime == XPathNodeType.All)
3303if ((kinds & XmlNodeKindFlags.Document) != 0) kindsUnion |= (1 << (int)XPathNodeType.Root);
3304if ((kinds & XmlNodeKindFlags.Element) != 0) kindsUnion |= (1 << (int)XPathNodeType.Element);
3305if ((kinds & XmlNodeKindFlags.Attribute) != 0) kindsUnion |= (1 << (int)XPathNodeType.Attribute);
3307kindsUnion |= (1 << (int)(int)XPathNodeType.Text) |
3308(1 << (int)(int)XPathNodeType.SignificantWhitespace) |
3309(1 << (int)(int)XPathNodeType.Whitespace);
3310if ((kinds & XmlNodeKindFlags.Comment) != 0) kindsUnion |= (1 << (int)XPathNodeType.Comment);
3311if ((kinds & XmlNodeKindFlags.PI) != 0) kindsUnion |= (1 << (int)XPathNodeType.ProcessingInstruction);
3312if ((kinds & XmlNodeKindFlags.Namespace) != 0) kindsUnion |= (1 << (int)XPathNodeType.Namespace);
4100private GenerateNameType LoadNameAndType(XPathNodeType nodeType, QilNode ndName, bool isStart, bool callChk)
4574private static XPathNodeType QilXmlToXPathNodeType(XmlNodeKindFlags xmlTypes)
4578case XmlNodeKindFlags.Element: return XPathNodeType.Element;
4579case XmlNodeKindFlags.Attribute: return XPathNodeType.Attribute;
4580case XmlNodeKindFlags.Text: return XPathNodeType.Text;
4581case XmlNodeKindFlags.Comment: return XPathNodeType.Comment;
4584return XPathNodeType.ProcessingInstruction;
4590private static XPathNodeType QilConstructorToNodeType(QilNodeType typ)
4594case QilNodeType.DocumentCtor: return XPathNodeType.Root;
4595case QilNodeType.ElementCtor: return XPathNodeType.Element;
4596case QilNodeType.TextCtor: return XPathNodeType.Text;
4597case QilNodeType.RawTextCtor: return XPathNodeType.Text;
4598case QilNodeType.PICtor: return XPathNodeType.ProcessingInstruction;
4599case QilNodeType.CommentCtor: return XPathNodeType.Comment;
4600case QilNodeType.AttributeCtor: return XPathNodeType.Attribute;
4601case QilNodeType.NamespaceDecl: return XPathNodeType.Namespace;
4605return XPathNodeType.All;
4630_helper.CallGetTypeFilter(XPathNodeType.All);
4635_helper.CallGetTypeFilter(XPathNodeType.Attribute);
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (78)
53private XPathNodeType _rootType; // NodeType of the root of the tree
78_rootType = XPathNodeType.Root;
163Debug.Assert(ValidateNames.ValidateName(prefix, localName, ns, XPathNodeType.Element, ValidateNames.Flags.All), "Name validation failed");
166ConstructWithinContent(XPathNodeType.Element);
231Debug.Assert(ValidateNames.ValidateName(prefix, localName, ns, XPathNodeType.Attribute, ValidateNames.Flags.All));
234ConstructInEnumAttrs(XPathNodeType.Attribute);
417public void StartTree(XPathNodeType rootType)
422_xstate = (rootType == XPathNodeType.Attribute || rootType == XPathNodeType.Namespace) ? XmlState.EnumAttrs : XmlState.WithinContent;
597ThrowInvalidStateError(XPathNodeType.Root);
599StartTree(XPathNodeType.Root);
634WriteStartComputed(XPathNodeType.Element, tagName, prefixMappingsIndex);
642WriteStartComputed(XPathNodeType.Element, tagName, ns);
650WriteStartComputed(XPathNodeType.Element, navigator);
658WriteStartComputed(XPathNodeType.Element, name);
666WriteStartComputed(XPathNodeType.Attribute, tagName, prefixMappingsIndex);
674WriteStartComputed(XPathNodeType.Attribute, tagName, ns);
682WriteStartComputed(XPathNodeType.Attribute, navigator);
690WriteStartComputed(XPathNodeType.Attribute, name);
701ConstructInEnumAttrs(XPathNodeType.Namespace);
749ConstructInEnumAttrs(XPathNodeType.Namespace);
789ConstructWithinContent(XPathNodeType.Comment);
827ConstructWithinContent(XPathNodeType.ProcessingInstruction);
830ValidateNames.ValidateNameThrow("", target, "", XPathNodeType.ProcessingInstruction, ValidateNames.Flags.AllExceptPrefixMapping);
904else if (navigator.NodeType == XPathNodeType.Root)
933if (navigator.NodeType == XPathNodeType.Root)
938Debug.Assert(navigator.NodeType == XPathNodeType.Element, "StartCopy should return true only for Element nodes.");
954if (navigator.NodeType == XPathNodeType.Element)
957Debug.Assert(navigator.NodeType == XPathNodeType.Root, "EndCopy should only be called for Element and Document nodes.");
987StartTree(XPathNodeType.Text);
1035XPathNodeType nodeType;
1044Debug.Assert(nodeType == XPathNodeType.Element, "StartCopy should return true only for Element nodes.");
1102case XPathNodeType.Element:
1116case XPathNodeType.Attribute:
1141case XPathNodeType.Namespace:
1158case XPathNodeType.Text:
1159case XPathNodeType.SignificantWhitespace:
1160case XPathNodeType.Whitespace:
1173case XPathNodeType.Root:
1176ThrowInvalidStateError(XPathNodeType.Root);
1179case XPathNodeType.Comment:
1185case XPathNodeType.ProcessingInstruction:
1205Debug.Assert(navigator.NodeType == XPathNodeType.Element);
1219Debug.Assert(navigator.NodeType == XPathNodeType.Element, "Only elements have namespaces to copy");
1255private void ConstructWithinContent(XPathNodeType rootType)
1257Debug.Assert(rootType == XPathNodeType.Element || rootType == XPathNodeType.Comment || rootType == XPathNodeType.ProcessingInstruction);
1286private void ConstructInEnumAttrs(XPathNodeType rootType)
1288Debug.Assert(rootType == XPathNodeType.Attribute || rootType == XPathNodeType.Namespace);
1329private static XPathNodeType XmlStateToNodeType(XmlState xstate)
1333case XmlState.EnumAttrs: return XPathNodeType.Element;
1334case XmlState.WithinContent: return XPathNodeType.Element;
1335case XmlState.WithinAttr: return XPathNodeType.Attribute;
1336case XmlState.WithinComment: return XPathNodeType.Comment;
1337case XmlState.WithinPI: return XPathNodeType.ProcessingInstruction;
1341return XPathNodeType.Element;
1441private void WriteStartComputed(XPathNodeType nodeType, string tagName, int prefixMappingsIndex)
1451if (nodeType == XPathNodeType.Element)
1460private void WriteStartComputed(XPathNodeType nodeType, string tagName, string ns)
1470if (nodeType == XPathNodeType.Element)
1479private void WriteStartComputed(XPathNodeType nodeType, XPathNavigator navigator)
1493if (nodeType == XPathNodeType.Element)
1502private void WriteStartComputed(XPathNodeType nodeType, XmlQualifiedName name)
1508prefix = (name.Namespace.Length != 0) ? RemapPrefix(string.Empty, name.Namespace, nodeType == XPathNodeType.Element) : string.Empty;
1511if (nodeType == XPathNodeType.Element)
1522private string EnsureValidName(string prefix, string localName, string ns, XPathNodeType nodeType)
1527prefix = (ns.Length != 0) ? RemapPrefix(string.Empty, ns, nodeType == XPathNodeType.Element) : string.Empty;
1564private void ThrowInvalidStateError(XPathNodeType constructorType)
1568case XPathNodeType.Element:
1569case XPathNodeType.Root:
1570case XPathNodeType.Text:
1571case XPathNodeType.Comment:
1572case XPathNodeType.ProcessingInstruction:
1575case XPathNodeType.Attribute:
1576case XPathNodeType.Namespace:
1583goto case XPathNodeType.Element;
System\Xml\Xsl\XPath\XPathBuilder.cs (4)
320public static XmlNodeKindFlags AxisTypeMask(XmlNodeKindFlags inputTypeMask, XPathNodeType nodeType, XPathAxis xpathAxis)
328private QilNode BuildAxisFilter(QilNode qilAxis, XPathAxis xpathAxis, XPathNodeType nodeType, string? name, string? nsUri)
390private QilNode BuildAxis(XPathAxis xpathAxis, XPathNodeType nodeType, string? nsUri, string? name)
432public virtual QilNode Axis(XPathAxis xpathAxis, XPathNodeType nodeType, string? prefix, string? name)
System\Xml\Xsl\XPath\XPathParser.cs (19)
6using XPathNodeType = System.Xml.XPath.XPathNodeType;
86Node opnd = _builder!.Axis(XPathAxis.Root, XPathNodeType.All, null, null);
98_builder.Axis(XPathAxis.Root, XPathNodeType.All, null, null),
100_builder.Axis(XPathAxis.DescendantOrSelf, XPathNodeType.All, null, null),
137_builder.Axis(XPathAxis.DescendantOrSelf, XPathNodeType.All, null, null),
155opnd = _builder!.Axis(XPathAxis.Self, XPathNodeType.All, null, null);
164opnd = _builder!.Axis(XPathAxis.Parent, XPathNodeType.All, null, null);
217XPathNodeType nodeType;
238private static XPathNodeType PrincipalNodeType(XPathAxis axis)
241axis == XPathAxis.Attribute ? XPathNodeType.Attribute :
242axis == XPathAxis.Namespace ? XPathNodeType.Namespace :
243/*else*/ XPathNodeType.Element
247internal static void InternalParseNodeTest(XPathScanner scanner, XPathAxis axis, out XPathNodeType nodeType, out string? nodePrefix, out string? nodeName)
258case "comment": nodeType = XPathNodeType.Comment; break;
259case "text": nodeType = XPathNodeType.Text; break;
260case "node": nodeType = XPathNodeType.All; break;
263nodeType = XPathNodeType.ProcessingInstruction;
270if (nodeType == XPathNodeType.ProcessingInstruction)
461_builder.Axis(XPathAxis.DescendantOrSelf, XPathNodeType.All, null, null),
System\Xml\Xsl\Xslt\XPathPatternParser.cs (7)
9using XPathNodeType = System.Xml.XPath.XPathNodeType;
75opnd = _ptrnBuilder!.Axis(XPathAxis.Root, XPathNodeType.All, null, null);
85_ptrnBuilder.Axis(XPathAxis.Root, XPathNodeType.All, null, null),
87_ptrnBuilder.Axis(XPathAxis.DescendantOrSelf, XPathNodeType.All, null, null),
105_ptrnBuilder.Axis(XPathAxis.DescendantOrSelf, XPathNodeType.All, null, null),
181_ptrnBuilder.Axis(XPathAxis.DescendantOrSelf, XPathNodeType.All, null, null),
226XPathNodeType nodeType;
System\Xml\Xsl\XsltOld\Processor.cs (45)
591if (_stylesheet.Whitespace && n.NodeType == XPathNodeType.Element)
603Debug.Assert(nav.NodeType == XPathNodeType.Element);
611case XPathNodeType.Text:
612case XPathNodeType.SignificantWhitespace:
615case XPathNodeType.Whitespace:
621case XPathNodeType.Element:
725internal bool BeginEvent(XPathNodeType nodeType, string? prefix, string? name, string? nspace, bool empty)
730internal bool BeginEvent(XPathNodeType nodeType, string? prefix, string? name, string? nspace, bool empty, object? htmlProps, bool search)
782int stateOutlook = _xsm.BeginOutlook(XPathNodeType.Text);
787_xsm.Begin(XPathNodeType.Text);
792_xsm.Begin(XPathNodeType.Text);
808internal bool EndEvent(XPathNodeType nodeType)
847case XPathNodeType.Element:
848case XPathNodeType.Attribute:
849case XPathNodeType.ProcessingInstruction:
850case XPathNodeType.Comment:
852case XPathNodeType.Namespace:
854return BeginEvent(XPathNodeType.Namespace, null, node.LocalName, node.Value, false);
855case XPathNodeType.Text:
859case XPathNodeType.Root:
860case XPathNodeType.Whitespace:
861case XPathNodeType.SignificantWhitespace:
862case XPathNodeType.All:
877case XPathNodeType.Element:
878case XPathNodeType.Namespace:
881case XPathNodeType.Attribute:
882case XPathNodeType.ProcessingInstruction:
883case XPathNodeType.Comment:
884case XPathNodeType.Text:
885case XPathNodeType.Whitespace:
886case XPathNodeType.SignificantWhitespace:
890case XPathNodeType.Root:
891case XPathNodeType.All:
906case XPathNodeType.Element:
907case XPathNodeType.Attribute:
908case XPathNodeType.ProcessingInstruction:
909case XPathNodeType.Comment:
910case XPathNodeType.Namespace:
913case XPathNodeType.Text:
918case XPathNodeType.Root:
919case XPathNodeType.Whitespace:
920case XPathNodeType.SignificantWhitespace:
921case XPathNodeType.All:
936if (navigator.NodeType == XPathNodeType.Root)
940else if (navigator.NodeType == XPathNodeType.Element)