tags:

views:

2269

answers:

3

Hi Is there any library available to parse KML ?

+2  A: 

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!

basszero
+1  A: 

Since it is xml you can read the data with any parser but still there is an lib available at http://code.google.com/p/libkml/ it has bindings for java but the lib is in C++

Mite Mitreski
+2  A: 

This library looks promising as well:

http://code.google.com/p/javaapiforkml/

Ajay