## XPathNavigator::ReplaceRange method


Replaces a range of sibling nodes from the current node to the node specified.

```cpp
virtual SharedPtr<XmlWriter> System::Xml::XPath::XPathNavigator::ReplaceRange(SharedPtr<XPathNavigator> lastSiblingToReplace)
```


| Parameter | Type | Description |
| --- | --- | --- |
| lastSiblingToReplace | SharedPtr\<XPathNavigator\> | An [XPathNavigator](../) positioned on the last sibling node in the range to replace. |

### ReturnValue

An [XmlWriter](../../../system.xml/xmlwriter/) object used to specify the replacement range.

## See Also

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