## XPathNavigator::MoveToId method


When overridden in a derived class, moves to the node that has an attribute of type **ID** whose value matches the specified [String](../../../system/string/).

```cpp
virtual bool System::Xml::XPath::XPathNavigator::MoveToId(String id)=0
```


| Parameter | Type | Description |
| --- | --- | --- |
| id | String | A [String](../../../system/string/) representing the **ID** value of the node to which you want to move. |

### ReturnValue

**true** if the [XPathNavigator](../) is successful moving; otherwise, **false**. If **false**, the position of the navigator is unchanged.

## See Also

* Class [String](../../../system/string/)
* Class [XPathNavigator](../)
* Namespace [System::Xml::XPath](../../)
* Library [Aspose.PDF for C++](../../../)
