---
title: children
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/xmlnode/children
---

# children

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

## Declaration

```swift
var children: [XMLNode]? { get }
```

## See Also

### Navigating the Tree of Nodes

- [rootDocument](foundation/xmlnode/rootdocument.md)
- [parent](foundation/xmlnode/parent.md)
- [child(at:)](foundation/xmlnode/child(at:).md)
- [childCount](foundation/xmlnode/childcount.md)
- [next](foundation/xmlnode/next.md)
- [nextSibling](foundation/xmlnode/nextsibling.md)
- [previous](foundation/xmlnode/previous.md)
- [previousSibling](foundation/xmlnode/previoussibling.md)
- [detach()](foundation/xmlnode/detach().md)
