Hi Castor- Community,

it' is possible to say Castor use for the output- file the same order
of elements as the order of the elements at the input- file is?

I have the following input-file

<xml....>
   <PropertyItem />
   <FunnyItem />
   <PropertyItem />
   <FunnyItem />
   <PropertyItem />
   <FunnyItem />
</xml>

The number of the items is not defined and the order is very imported.
In my Java Object I define two collections one for the FunnyItems and
another for the PropertyItems. To map the xml- file to java- objects I
use the castor- mapping file option.
If I marshall this objects I get the following order of the Objects:

<xml....>
   <PropertyItem />
   <PropertyItem />
   <PropertyItem />
   <FunnyItem />
   <FunnyItem />
   <FunnyItem />
</xml>

I believe the reason why Castor orders the items in this way I had
figured out. But I like to know how I can change this behavior?

Greetings
Thomas

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

    http://xircles.codehaus.org/manage_email


Reply via email to