## XPathNavigator::ReplaceSelf(String) method


Replaces the current node with the content of the string specified.

```cpp
virtual void System::Xml::XPath::XPathNavigator::ReplaceSelf(String newNode)
```


| Parameter | Type | Description |
| --- | --- | --- |
| newNode | String | The XML data string for the new node. |

## See Also

* Class [String](../../../system/string/)
* Class [XPathNavigator](../)
* Namespace [System::Xml::XPath](../../)
* Library [Aspose.PUB for C++](../../../)
## XPathNavigator::ReplaceSelf(SharedPtr\<XmlReader\>) method


Replaces the current node with the contents of the [XmlReader](../../../system.xml/xmlreader/) object specified.

```cpp
virtual void System::Xml::XPath::XPathNavigator::ReplaceSelf(SharedPtr<XmlReader> newNode)
```


| Parameter | Type | Description |
| --- | --- | --- |
| newNode | SharedPtr\<XmlReader\> | An [XmlReader](../../../system.xml/xmlreader/) object positioned on the XML data for the new node. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlReader](../../../system.xml/xmlreader/)
* Class [XPathNavigator](../)
* Namespace [System::Xml::XPath](../../)
* Library [Aspose.PUB for C++](../../../)
## XPathNavigator::ReplaceSelf(SharedPtr\<XPathNavigator\>) method


Replaces the current node with the contents of the [XPathNavigator](../) object specified.

```cpp
virtual void System::Xml::XPath::XPathNavigator::ReplaceSelf(SharedPtr<XPathNavigator> newNode)
```


| Parameter | Type | Description |
| --- | --- | --- |
| newNode | SharedPtr\<XPathNavigator\> | An [XPathNavigator](../) object positioned on the new node. |

## See Also

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