## XmlAttribute::ReplaceChild method


Replaces the child node specified with the new child node specified.

```cpp
SharedPtr<XmlNode> System::Xml::XmlAttribute::ReplaceChild(SharedPtr<XmlNode> newChild, SharedPtr<XmlNode> oldChild) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| newChild | SharedPtr\<XmlNode\> | The new child [XmlNode](../../xmlnode/). |
| oldChild | SharedPtr\<XmlNode\> | The [XmlNode](../../xmlnode/) to replace. |

### ReturnValue

The [XmlNode](../../xmlnode/) replaced.

## See Also

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