XPathNavigator.ComparePosition Method (XPathNavigator)
Assembly: System.Xml (in System.Xml.dll)
abstract ComparePosition : nav:XPathNavigator -> XmlNodeOrder override ComparePosition : nav:XPathNavigator -> XmlNodeOrder
The following table describes the XmlNodeOrder enumeration.
The two XPathNavigator objects are positioned on the same node.
The node positions cannot be determined relative to each other in the document order, or null is specified as the XPathNavigator parameter. This could occur if the two nodes reside in different trees.
Element nodes: These nodes are returned in document order from the source document.
For more information about the XPath data model and details about each of the node types, see section 5 of the W3C XML Path Language (XPath) recommendation located at http://www.w3.org/TR/xpath#data-model.
This method has no effect on the state of the XPathNavigator.
Use the IsSamePosition method rather than the method when possible.
Available since 1.1
Available since 4.0