Instance Method

setChildren:

Sets the child nodes of the receiver.

Declaration

- (void)setChildren:(NSArray<NSXMLNode *> *)children;

Parameters

children

An array of NSXMLNode objects. Each of these objects must represent comments, processing instructions, or the root element; otherwise, an exception is raised. Pass in nil to remove all children.

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.

- removeChildAtIndex:

Removes the child node of the receiver located at a specified position in its 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.