It works...what a neat little trick ! Thanks Keith,
Quynh -----Original Message----- From: Keith Visco [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 7:18 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Marshall multiple Java Objects into one XML file ? Hi Quynh, You can do the following: marshaller m = new Marshaller(...); m.setMarshalAsDocument(false); and then pass in multiple objects: m.marshal(obj1); m.marshal(obj2); ... --Keith "Jakubowski, Quynh" wrote: > > Hello, > > I've searched the archive and I didn't find anything. Is it possible to > marshall multiple Java objects into 1 XML file ? My understanding is that > you can only pass one Java class to the Marshaller.marshall method. > > Thanks, > Q. Jakubowski > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev