Torsten,
Looks like a bug with container="true" when dealing with arrays, since
the only thing that should do is remove the "<coordinates>" element, but
the individual "<float>" elements should still be there.
Out of curiosity, what happens if you set node="text"?
--Keith
Torsten Heinen wrote:
>
> How do I marshal a float array into a list?
>
> My mapping file looks like this:
> <class name="vshape.VGeometry">
> <field name="coordinates" type="float" collection="array" container="true">
> <bind-xml name="coordinates" node="element" />
> </field>
> </class>
>
> Here is the XML output:
> <?xml version="1.0" encoding="UTF-8"?>
> <VGeometry>401898.0723416.050.964954402299.0723 ...</VGeometry>
>
> So, the white-space is missing between the float values. Any ideas why?
>
> Alternatively I can set the container="false" attribute, but then the XML
> output look like this:
> <?xml version="1.0" encoding="UTF-8"?>
> <VGeometry><coordinates><float>401898.0</float><float>723416.0</float><float>...
> This is simply to much overhead when dealing with thousands of values.
>
> Does anyone know how to get something like this???
> <?xml version="1.0" encoding="UTF-8"?>
> <VGeometry><coordinates>401898.0 723416.0 50.3 ....</coordinates></VGeometry>
>
> Any help is welcome...
> Torsten
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-user
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user