removeChild(at:)
Removes the child node of the receiver identified by a given index.
Declaration
func removeChild(at index: Int)Parameters
- index:
An integer identifying the node in the receiver’s list of children to remove. An exception is raised if
indexis out of bounds.
Discussion
The XML node object is released upon removal. The indices of subsequent children are decremented by one.