Instance Method

removeChildAtIndex:

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

Declaration

- (void)removeChildAtIndex:(NSUInteger)index;

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 NSXMLNode object is autoreleased.

See Also

Adding and Removing Child Nodes

- addChild:

Adds a child node after the last of the receiver’s existing children.

- insertChild:atIndex:

Inserts a node object at specified position in the receiver’s array of children.

- insertChildren:atIndex:

Inserts an array of children at a specified position in the receiver’s array of children.

- replaceChildAtIndex:withNode:

Replaces the child node of the receiver located at a specified position in its array of children with another node.

- setChildren:

Sets the child nodes of the receiver.