child(at:)
Returns the child node of the receiver at the specified location.
Declaration
func child(at index: Int) -> XMLNode?Parameters
- index:
An integer specifying a node position in the receiver’s array of children. If
indexis out of bounds, an exception is raised.
Return Value
An NSXMLNode object or nil f the receiver has no children.
Discussion
The receiver should be an NSXMLNode object representing a document, element, or document type declaration. The returned node object can represent an element, comment, text, or processing instruction.