## XPathNavigator::ComparePosition method


Compares the position of the current [XPathNavigator](../) with the position of the [XPathNavigator](../) specified.

```cpp
virtual XmlNodeOrder System::Xml::XPath::XPathNavigator::ComparePosition(SharedPtr<XPathNavigator> nav)
```


| Parameter | Type | Description |
| --- | --- | --- |
| nav | SharedPtr\<XPathNavigator\> | The [XPathNavigator](../) to compare against. |

### ReturnValue

An XmlNodeOrder value representing the comparative position of the two [XPathNavigator](../) objects.

## See Also

* Enum [XmlNodeOrder](../../../system.xml/xmlnodeorder/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XPathNavigator](../)
* Class [XPathNavigator](../)
* Namespace [System::Xml::XPath](../../)
* Library [Aspose.PUB for C++](../../../)
