How to read KML file and display information on Android screen
I want to read a KML file that exists and display its information on the screen, this is the KML file that I have:
<kml xmlns='http://www.opengis.net/kml/2.2'>
<Document>
<gcname>ATM HCM</gcname>
<Placemark>
<name>MAC THI BUOI</name>
<Point>
<coordinates>-81.4324182271957,43.5984273639879,0</coordinates>
</Point>
</Placemark>
<Placemark>
<name>TRUONG DINH</name>
<Point>
<coordinates>-85.433182656765,41.5955730479591,0</coordinates>
</Point>
</Placemark>
anyone help me, pls!
+3
source to share
1 answer
You can use XML parsing libraries. Example: this link
Another example on the Android Developers page: XMLPullParser
0
source to share