Open GoogleCodeExporter opened 9 years ago
Have the same problem. Any solution yet?
Original comment by bor...@gmail.com
on 22 Dec 2011 at 10:08
I have the same problem. Any solution Yet?
Original comment by John.P.O...@gmail.com
on 9 Feb 2012 at 4:08
Having this problem as well.
Original comment by camj...@gmail.com
on 18 Jul 2012 at 10:29
The cause of this issue is that JAXB is unable to deal CDATA content.
To solve this issues I had to patch the Kml.java source file as specified in
http://stackoverflow.com/questions/1506663/can-i-force-jaxb-not-to-convert-into-
quot-for-example-when-marshalling-to.
So I added a custom CharacterEscapeHandler and modified the createMarshaller()
method adding the following lines:
m.setProperty("jaxb.encoding", "Unicode");
m.setProperty("com.sun.xml.bind.marshaller.CharacterEscapeHandler", new NullCharacterEscapeHandler());
It works. I do not know if there is any side effect of this patch.
Original comment by alberto....@gmail.com
on 16 Nov 2012 at 2:28
Following on from Alberto's comment, attached is a MyKML.java which overrides
the needed methods. I used this as I could not be bothered playing with my
maven repo and modifying the KML.java.
Feel free to use
Original comment by pwat...@gmail.com
on 2 Jul 2013 at 5:36
Attachments:
Original issue reported on code.google.com by
inos...@gmail.com
on 22 Nov 2011 at 9:05