Contents

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 index is out of bounds.

Discussion

The XML node object is released upon removal. The indices of subsequent children are decremented by one.

See Also

Manipulating Child Elements