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

Reply via email to