Contents

childCount

Returns the number of child nodes the receiver has.

Declaration

var childCount: Int { get }

Discussion

This receiver should be an NSXMLNode object representing a document, element, or document type declaration. For performance reasons, use this method instead of getting the count from the array returned by children (for example, [[thisNode children] count]).

See Also

Navigating the Tree of Nodes