replaceChild(at:with:)
Replaces a child at a particular index with another child.
Declaration
func replaceChild(at index: Int, with node: XMLNode)Parameters
- index:
An integer identifying the position of a node in the receiver’s list of child nodes.
- node:
An Xmlnode object to replace the object at
index.
Discussion
The replaced child node is released.