Contents

removeChild(at:)

Removes the child node of the receiver located at a specified position in its array of children.

Declaration

func removeChild(at index: Int)

Parameters

  • index:

    An integer identifying the position of an child in the receiver’s array. If index is less than zero or greater than the number of children minus one, an out-of-bounds exception is raised.

Discussion

Subsequent children have their indexes decreased by one. The removed XMLNode object is autoreleased.

See Also

Adding and Removing Child Nodes