
## replace_child(node, child) {#Node-Node}

Replaces the child node old child with new child in the list of children, and returns the old child node.

### Returns 





```python
def replace_child(self, node, child):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| node | [Node](/finance/python-net/aspose.finance.xbrl.dom/node) | The new node. |
| child | [Node](/finance/python-net/aspose.finance.xbrl.dom/node) | The old child. |



### See Also
* module [aspose.finance.xbrl.dom](../../)
* class [Element](/finance/python-net/aspose.finance.xbrl.dom/element)
