Show / Hide Table of Contents

Property RootNodes

RootNodes

Gets this dataset's root KML nodes as a KmlNodeCollection.

Declaration
public KmlNodeCollection RootNodes { get; }
Property Value
Type Description
KmlNodeCollection

A read-only collection of KmlNode objects.

Remarks

Used to traverse the KmlNode objects for examining/using individual KML features. RootNodes is populated after a KML dataset has finished loading successfully.

It should be noted that a typical KML document will have multiple levels of nested KML nodes. To traverse through all of the KML node information in a KmlDataset, it is recommended to recursively test all KmlNodes to see if they contain additional child KmlNodes. When writing your recursive function pay particular attention to the properties: KmlDataset.RootNodes, KmlNetworkLink.ChildNodes, and KmlContainer.ChildNodes (inherited by KmlDocument and KmlFolder).

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.4 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.4 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.4 - 100.14
Xamarin.iOS100.4 - 100.14
UWP100.4 - 100.14
Relevant samples
List KML contents: List the contents of a KML file.
In This Article
Back to top Copyright © 2021 Esri.