|
Hi All, Apologies for this newbie question, but I
wasn’t able to find the answer in previous posts… I am looking at using jibx for marshalling a
collection of objects into a ServletResponse for consumption by an OpenLaszlo
application. I’d like to end up with XML something like: <jobs> <job> <name>blah</name> Etc </job> <job> … </job> </jobs> At present I have the following binding definition: <binding> <mapping
name="job" class="com.vizability.jobman.biz.jobs.Job">
<value name="name" field="name"/>
<value name="description" field="description"/>
<value name="dateRequired" field="dateRequired"/>
<value name="priority" field="priority"/>
<value name="quoteNum" field="quoteNum"/>
<value name="invoiceNum" field="invoiceNum"/> <value
name="id" field="id"/>
<value name="poNum" field="poNum"/>
<value name="proofsRequired" field="proofsRequired"/>
<structure name="client" field="client">
<structure field="clientOrg">
<value name="name" field="name"/>
<value name="id" field="id"/>
<value name="contact" field="contact"/>
<value name="contactPhone" field="contactPhone"/>
</structure>
</structure>
<structure name="payer" field="payer">
<structure field="payingOrg">
<value name="name" field="name"/>
<value name="id" field="id"/>
<value name="contact" field="contact"/>
<value name="contactPhone" field="contactPhone"/>
</structure>
</structure> </mapping> </binding> Is it possible to generate the jobs collection without
defining a specific collection class? Thanks for any help J Cheers, Pete |
- [jibx-users] collection as top level element Peter Whitfield
- Re: [jibx-users] collection as top level element Dennis Sosnoski
