rootNodes property
The KML dataset's root nodes.
KML files can have multiple root nodes, each of which may have children. When traversing the KML feature tree (for example to build a TOC), KmlDataset.rootNodes is the correct starting point. Each root node can be the start of a tree of nodes, so these should be recursively explored with KmlContainer.childNodes or KmlNetworkLink.childNodes.