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 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.4 - 200.7
Xamarin.Android100.4 - 100.15
Xamarin.iOS100.4 - 100.15
UWP100.4 - 200.7
Relevant samples
List KML contents: List the contents of a KML file.
In This Article
Back to top Copyright © 2022 Esri.