## XmlNode::ReplaceChild method


Replaces the child node **oldChild** with **newChild** node.

```cpp
virtual SharedPtr<XmlNode> System::Xml::XmlNode::ReplaceChild(SharedPtr<XmlNode> newChild, SharedPtr<XmlNode> oldChild)
```


| Parameter | Type | Description |
| --- | --- | --- |
| newChild | SharedPtr\<XmlNode\> | The new node to put in the child list. |
| oldChild | SharedPtr\<XmlNode\> | The node being replaced in the list. |

### ReturnValue

The node replaced.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlNode](../)
* Class [XmlNode](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
