You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to javaap...@googlegroups.com
I need to get to the comments in a Google Maps generated file:
<?xml version='1.0' encoding='UTF-8'?> <kml xmlns='http://www.opengis.net/kml/2.2'> <Document> <name>2014 August Vacation</name> <description><![CDATA[Driving tour of Paris]]></description>
I have tried using:
kml = Kml.unmarshal(new File(path), false);
if (kml == null) { throw new RuntimeException(".kml files was not found in " + path); }
Object feature = kml.getFeature();
if (!(feature instanceof Document)) { throw new RuntimeException("Parse error #1"); }
Document document = (Document) feature;
But the "Document" class contains no method to get to the comments. I was hoping to find a setIgnoreComments() method off Document or kml, but alas no luck.