Hi Larry,

can you please raise a bug report at

http://jira.codehaus.org/browse/CASTOR

and attach all files relevant to reproduce/replay the problem. For the sake of simplicity, please keep the files attached (XML schema, etc.) as minimal as possible.

Regards
Werner

On 16.02.2011 15:55, Larry Gilliam wrote:
Hello,

I'm having a problem where marshaling an object produces duplicate
tags and duplicate attributes for specific elements. These objects
where initially defined with castor code generator, and are
instantiated via unmarshalling some xml ( which doesn't contain these
oddities ).

Sometimes one element will have a namespace prefix while the other won't:

  <ns1:description>
    Text A
  </ns1:description>
    <ns1:name>Text B</ns1:name>
  <description>
     Text A
  </description>

And some elements have the same attribute defined twice ( and also
duplicate elements within ):

<lonLatEnvelope srsName="WGS84(DD)" srsName="WGS84(DD)">  <!-- 2 of
same attribute -->
    <ns8:pos dimension="2">-179.875000 -89.875000</ns8:pos>  <!-- expected -->
    <ns8:pos dimension="2">179.875000 89.875000</ns8:pos>    <!-- expected -->
    <ns8:pos dimension="2">-179.875000 -89.875000</ns8:pos>  <!-- dupe -->
    <ns8:pos dimension="2">179.875000 89.875000</ns8:pos>    <!-- dupe -->
</lonLatEnvelope>

This case produces invalid XML ( b/c of the 2 srsName attributes ).

Has anyone had this experience? I can provide schemas and more info if
desired. This is with castor 1.3.1.

Thanks for any insight.

-Larry

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

     http://xircles.codehaus.org/manage_email




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to