Reputation: 101
I want to read a KML file that exists on the android mobile directory(sd card ) and I want to get the information from this file and display it on the screen.
this is the KML file that I have :
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Placemark>
<name>Simple placemark</name>
<description>Attached to the ground. Intelligently places itself at the
height of the underlying terrain.</description>
<Point>
<coordinates>-122.0822035425683,37.42228990140251,0</coordinates>
</Point>
</Placemark>
</kml>
Upvotes: 0
Views: 7674
Reputation: 5969
Just parse it as you parse XML. Here's my take on it. Hope this help: https://gist.github.com/3163006
Upvotes: 2