Read and parse KML in java

Evgeny Shepelyuk picture Evgeny Shepelyuk · Jul 16, 2009 · Viewed 30.3k times · Source

Is there any library available to parse KML ?

Answer

basszero picture basszero · Jul 16, 2009

You'll be making your own library, but you won't be writing any code.

I suggest looking at http://code.google.com/apis/kml/documentation/kmlreference.html. From there you can get the XML Schema. Once you've got the schema you can use JAXB to generate an object tree to easily parse and write KML.

This may also be a good resource, looks like someone else has already done it!