VB.NET Get KML File Properties (Google Earth API)
This article explains how to get the different properties from a KML file using VB.Net. Properties such as:
The first step would be to add reference to the Microsoft XML library. I have Microsoft XML V6.0 installed on my system. The KML file is basically an XML file, therefore this library will help us get the required data from this XML file:
As mentioned in the previous section, the KML file is basically an XML file. XML files have Nodes and Child Nodes. In order to get the require data you would need to figure out which node contains the required data. Fortunately I’ve already done that for you in the code below:
The Longitude, Latitude, Altitude, … values are stored in the variables dblLongitude, dblLatitude, dblAltitude.
You can download the file and code used in this article from the link below: