Comments (5)
Have the same problem. Any solution yet?
Original comment by [email protected]
on 22 Dec 2011 at 10:08
from javaapiforkml.
I have the same problem. Any solution Yet?
Original comment by [email protected]
on 9 Feb 2012 at 4:08
from javaapiforkml.
Having this problem as well.
Original comment by [email protected]
on 18 Jul 2012 at 10:29
from javaapiforkml.
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 [email protected]
on 16 Nov 2012 at 2:28
from javaapiforkml.
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 [email protected]
on 2 Jul 2013 at 5:36
Attachments:
from javaapiforkml.
Related Issues (20)
- Unspecified elements initialised to zero, creates invalid KML
- <Icon> x, y, w, h elements are not supported
- Missing support for adding non-kml files to kmz wile marshalling HOT 1
- Provide jaxb.index file
- org.xml.sax.SAXParseException: The prefix "ns5" for attribute "ns5:type" associated with an element type "tessellate" is not bound.
- Unable to specify no header for IconStyle HOT 2
- KML marshaling introduces memory usage concerns HOT 2
- maxSessionLength defaults to 0.0 when KML Spec says it should be -1
- de.micromata.opengis is lost. ้้กน
- java.lang.ClassNotFoundException: de.micromata.opengis.kml.v_2_2_0.KmlFactory from BaseClassLoader@452890af{vfs:///C:/JBOSS-6.1.0.Final/server/default/deploy/weather_spot_v03.jar}
- Add marshal methods to raise exceptions instead of return codes
- Redirect stack traces to client logger
- Re-use JAXB Context across multiple Kml instances
- KML marshal(final OutputStream outputstream) should not throw FileNotFoundException
- Dependency on Jaxb Snapshot
- JDK 7 output does not include trailing differences
- OSGi support
- A KML File generated by Java API KML can't be deleted
- com.google.api.ads.common.lib.exception.ServiceException: Unexpected Exception
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javaapiforkml.