Hi Thomas, if you work with 2 collections you will always get what you see at the moment. The only solution for your problem is to use only one collection. Castor then will marshal the objects in the sequence they are contained in the collection. Maybe you create a wrapper collection that lets your 2 collections look like one for marshaling.
Regards Ralf Thomas Schoofs schrieb: > 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 > -- Syscon Ingenieurbüro für Meß- und Datentechnik GmbH Ralf Joachim Raiffeisenstraße 11 72127 Kusterdingen Germany Tel. +49 7071 3690 52 Mobil: +49 173 9630135 Fax +49 7071 3690 98 Internet: www.syscon.eu E-Mail: [EMAIL PROTECTED] Sitz der Gesellschaft: D-72127 Kusterdingen Registereintrag: Amtsgericht Stuttgart, HRB 382295 Geschäftsleitung: Jens Joachim, Ralf Joachim --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

