Hello !

I have a Java class of the form:

class Order
{
    protected String id;
    protected Client client;
    protected Vector items;

    [...]
}


and when I marshall it, instead of having an XML of the form:

<order id="1">
    <client id="3"/>
    <item id="1"/>
    <item id="2"/>
    <item id="4"/>
</order>


, I'd like to obtain an XML of the form:

<order id="1">
    <client id="3"/>
    <items>
        <item id="1"/>
        <item id="2"/>
        <item id="4"/>
    </items>
</order>


Is there a way to do that, and how ?
Thank you !

BoD 

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

Reply via email to