Good luck finding an answer to this, but if you do, I'd like to know
what you did.  I had a similar problem, where I generated beans using
SourceGenerator, and was under the impression that the SourceGenerator
would map the objects for lists similar to what your map file has, but
it was not in the descriptor classes.  I never got an answer on this
board as to what actually happens and couldn't find anything in the
docs, so I gave up and made the list a string.  The docs on schemas
(especially lists) definitely needs improving.


On Thu, 2004-06-17 at 10:49, 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
-- 
______________________________________
     Tony Vann
     Software Engineer 
     Planning Systems Inc.
     MSAAP Bldg 9121
     Stennis Space Center, MS  39529

     phone: 228-689-8443
     fax: 228-689-8499
     email: [EMAIL PROTECTED]
______________________________________



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to