56 references to Root
System.Data.Common (6)
System\Xml\DataDocumentXPathNavigator.cs (1)
55return xnt == XPathNodeType.Element || xnt == XPathNodeType.Root ? _curNode.InnerText : _curNode.Value!;
System\Xml\XPathNodePointer.cs (5)
37/*XmlNodeType.Document*/ (int)XPathNodeType.Root, 39/*XmlNodeType.DocumentFragment*/ (int)XPathNodeType.Root, 256if (xnt == XPathNodeType.Element || xnt == XPathNodeType.Root || xnt == XPathNodeType.Attribute) 693(int)XPathNodeType.Root => 716(int)XPathNodeType.Root => c.ColumnMapping == MappingType.Element,
System.Private.Xml (49)
System\Xml\Cache\XPathDocumentBuilder.cs (2)
117_idxParent = NewNode(out _pageParent, XPathNodeType.Root, string.Empty, string.Empty, string.Empty, baseUri); 734Debug.Assert(xptyp != XPathNodeType.Root && xptyp != XPathNodeType.Namespace);
System\Xml\Cache\XPathDocumentIterator.cs (2)
185if (root.NodeType != XPathNodeType.Root) 254if (root.NodeType != XPathNodeType.Root)
System\Xml\Cache\XPathDocumentNavigator.cs (1)
219case XPathNodeType.Root:
System\Xml\Core\XmlWriter.cs (1)
475case XPathNodeType.Root:
System\Xml\Core\XmlWriterAsync.cs (1)
475case XPathNodeType.Root:
System\Xml\Dom\XmlDocument.cs (1)
1806internal override XPathNodeType XPNodeType { get { return XPathNodeType.Root; } }
System\Xml\Dom\XmlDocumentFragment.cs (1)
194internal override XPathNodeType XPNodeType { get { return XPathNodeType.Root; } }
System\Xml\XPath\Internal\AbsoluteQuery.cs (1)
25if (context != null && context.NodeType == XPathNodeType.Root)
System\Xml\XPath\Internal\XPathParser.cs (2)
413/* default: */ XPathNodeType.Root 415Debug.Assert(nodeType != XPathNodeType.Root);
System\Xml\XPath\XPathNavigator.cs (9)
555case XPathNodeType.Root: 994case XPathNodeType.Root: 1039Debug.Assert(schemaType != null || this.NodeType == XPathNodeType.Root, "schemaType != null || this.NodeType == XPathNodeType.Root"); 1303if (type == XPathNodeType.Root 1377case XPathNodeType.Root: 1424case XPathNodeType.Root: 1660if (NodeType == XPathNodeType.Root) 1898(1 << (int) XPathNodeType.Root), // Root 1936case XPathNodeType.Root:
System\Xml\XPath\XPathNavigatorReader.cs (1)
982if (XPathNodeType.Root == _nav.NodeType)
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (3)
3282case XmlNodeKindFlags.Document: kindsRuntime = XPathNodeType.Root; break; 3303if ((kinds & XmlNodeKindFlags.Document) != 0) kindsUnion |= (1 << (int)XPathNodeType.Root); 4594case QilNodeType.DocumentCtor: return XPathNodeType.Root;
System\Xml\Xsl\Runtime\RtfNavigator.cs (1)
49get { return XPathNodeType.Root; }
System\Xml\Xsl\Runtime\TreeIterators.cs (1)
30if (input.NodeType == XPathNodeType.Root)
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (9)
78_rootType = XPathNodeType.Root; 597ThrowInvalidStateError(XPathNodeType.Root); 599StartTree(XPathNodeType.Root); 904else if (navigator.NodeType == XPathNodeType.Root) 933if (navigator.NodeType == XPathNodeType.Root) 957Debug.Assert(navigator.NodeType == XPathNodeType.Root, "EndCopy should only be called for Element and Document nodes."); 1173case XPathNodeType.Root: 1176ThrowInvalidStateError(XPathNodeType.Root); 1569case XPathNodeType.Root:
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (2)
765case XPathNodeType.Root: return code == XmlTypeCode.Document; 798case XPathNodeType.Root:
System\Xml\Xsl\Runtime\XmlSequenceWriter.cs (2)
86_writer = _doc.LoadFromWriter(XPathDocument.LoadFlags.AtomizeNames | (rootType == XPathNodeType.Root ? XPathDocument.LoadFlags.None : XPathDocument.LoadFlags.Fragment), string.Empty); 302case XPathNodeType.Root:
System\Xml\Xsl\XsltOld\CopyNodeSetAction.cs (1)
61if (nodeType == XPathNodeType.Element || nodeType == XPathNodeType.Root)
System\Xml\Xsl\XsltOld\NavigatorInput.cs (1)
222if (NodeType == XPathNodeType.Root)
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
258startNode.NodeType == XPathNodeType.Root // we are at root
System\Xml\Xsl\XsltOld\Processor.cs (4)
859case XPathNodeType.Root: 890case XPathNodeType.Root: 918case XPathNodeType.Root: 936if (navigator.NodeType == XPathNodeType.Root)
System\Xml\Xsl\XsltOld\RecordBuilder.cs (1)
168case XPathNodeType.Root:
System\Xml\Xsl\XsltOld\TemplateLookupAction.cs (1)
68case XPathNodeType.Root:
System.Private.Xml.Linq (1)
System\Xml\XPath\XNodeNavigator.cs (1)
212return XPathNodeType.Root;