Comments (8)
There wasn't a place to select the type. I would consider this as an
enhancement,
except maybe that Kml doesn't allow a ContentHandler for marshalling even
though
JAXB does.
Original comment by [email protected]
on 26 Aug 2009 at 3:45
from javaapiforkml.
Original comment by [email protected]
on 26 Aug 2009 at 8:06
- Changed state: Accepted
from javaapiforkml.
I added the public boolean marshal(ContentHandler) {...} method. (in r30.
http://code.google.com/p/javaapiforkml/source/detail?r=30)
Please let me know, if it is enough and you're now able to serialize your CDATA
code
correctly.
Original comment by [email protected]
on 27 Aug 2009 at 2:26
from javaapiforkml.
just give me a moment more, until I release r31...
Original comment by [email protected]
on 27 Aug 2009 at 2:51
from javaapiforkml.
Original comment by [email protected]
on 28 Aug 2009 at 8:12
- Changed state: Fixed
from javaapiforkml.
I set up my code like the JAXB FAQ suggested, but for whatever reason the
serializer
just won't pick up on the description element. I
tried "^description", "description", ":description"... no dice.
Oh well... thanks for the enhancement. The marshaller does use the
ContentHandler.
Hopefully the JAXB team will change the FAQ to a way that isn't deprecated.
Original comment by [email protected]
on 28 Aug 2009 at 4:32
from javaapiforkml.
Is this really fixed? I am struggling to get this to work. I have tried used
the https://jaxb.dev.java.net/faq/JaxbCDATASample.java solution but it does
not affect the 'description' element in any way. Anyone have any success?
Original comment by [email protected]
on 27 Jul 2011 at 4:33
from javaapiforkml.
Anyone fixed the problem?
It still does not work.
This is my code:
outputFormat.setCDataElements( new String[] { "description"});
outputFormat.setPreserveSpace(true);
outputFormat.setIndenting(true);
org.apache.xml.serialize.XMLSerializer xmlSerializer=new org.apache.xml.serialize.XMLSerializer (fileWriter,outputFormat);
kml.marshal(xmlSerializer.asContentHandler());
Original comment by [email protected]
on 28 Mar 2013 at 2:17
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
- CDATA tag in description problem HOT 5
- 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.