Instance Property

nextNode

Returns the next NSXMLNode object in document order.

Declaration

@property(readonly, copy) NSXMLNode *nextNode;

Discussion

You use this method to “walk” forward through the tree structure representing an XML document or document section. (Use previousNode to traverse the tree in the opposite direction.) Document order is the natural order that XML constructs appear in markup text. If you send this message to the last node in the tree, nil is returned. NSXMLNode bypasses namespace and attribute nodes when it traverses a tree in document order.

See Also

Navigating the Tree of Nodes

rootDocument

Returns the NSXMLDocument object containing the root element and representing the XML document as a whole.

parent

Returns the parent node of the receiver.

- childAtIndex:

Returns the child node of the receiver at the specified location.

childCount

Returns the number of child nodes the receiver has.

children

Returns an immutable array containing the child nodes of the receiver (as NSXMLNode objects).

nextSibling

Returns the next NSXMLNode object that is a sibling node to the receiver.

previousNode

Returns the previous NSXMLNode object in document order.

previousSibling

Returns the previous NSXMLNode object that is a sibling node to the receiver.

- detach

Detaches the receiver from its parent node.