MiguelEspinozaMedina / javaapiforkml

Automatically exported from code.google.com/p/javaapiforkml
0 stars 0 forks source link

Namespace "http://earth.google.com/kml/2.2" not working #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Unmarshal a kml or kmz file with namespace 
"http://earth.google.com/kml/2.2". An UnmarshalException is thrown (unexpected 
element)

What is the expected output? What do you see instead?
This namespace should work the same as "http://www.opengis.net/kml/2.2" since 
the specification is essentially the same. Unfortunately, there are still many 
kml files with the namespace "http://earth.google.com/kml/2.2" since Google was 
using that before the spec became official.

What version of the product are you using? On what operating system?
Using latest version of JAK as of Oct. 2/2010

Please provide any additional information below.
This issue was also mentioned a few times in issue 12 but it looks like the 
comments were added after the issue was closed so they may have been missed.

Original issue reported on code.google.com by 2jeffadd...@gmail.com on 2 Oct 2010 at 8:26

GoogleCodeExporter commented 9 years ago
You can handle wrong namespace in NamespaceFilterHandler. I've attached patch

Original comment by drykova...@gmail.com on 4 Apr 2011 at 7:14

Attachments:

GoogleCodeExporter commented 9 years ago
Do you have to recompile the whole source in order to do this?

Original comment by clankil...@gmail.com on 8 Feb 2012 at 7:50

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I wonder whether you could use a NameSpaceBeautyfier: 
https://github.com/restlet/restlet-framework-java/pull/2

It works for Marshalling, maybe it works to convert Namespaces when 
Unmarshalling too.

Original comment by theb...@emanueleziglioli.it on 8 Feb 2012 at 8:44