nan0ed / gpx4j

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

Wrong namespaces in jaxb writer #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Get a gpx document with valid data (reading from a file o code-created 
document)
2. Write this document in a gpx file using jaxb writer

The document contains a wrong namespace in all labels.

These labels must not contain any namespace and actually the file is generated 
with namespace ns3.

For example:

<ns3:metadata>
        <ns3:name>NAME</ns3:name>
        <ns3:desc>DESC</ns3:desc>
        <ns3:author>
            <ns3:name>Casaca</ns3:name>
            <ns3:email id="id" domain="domain"/>
            <ns3:link href="http://gpx4j.googlecode.com/">
                <ns3:text>GPX4J</ns3:text>
                <ns3:type>Link</ns3:type>
            </ns3:link>
        </ns3:author>
        <ns3:copyright author="Casaca">
            <ns3:year>2011+01:00</ns3:year>
            <ns3:license>GNU</ns3:license>
        </ns3:copyright>
        <ns3:time>2011-03-01T04:24:29.000Z</ns3:time>
        <ns3:keywords>KEYWORDS</ns3:keywords>
        <ns3:bounds minlat="39.125884" minlon="-0.438452" maxlat="39.124814" maxlon="-0.437916"/>
    </ns3:metadata>

Original issue reported on code.google.com by superkas83 on 9 Mar 2011 at 4:22