In your example, your choice does not contain maxOccurs="unbounded".

Have you tried that. 

Are you using the SourceGenerator or your own object model with a
mapping file?

Thanks,

--Keith



"Rigollet, Mickael" wrote:
> 
> I have a choice structure with an unbounded maxOccurs
> 
> <xs:element name="Item" maxOccurs="unbounded">
>                                         <xs:choice>
>                                             <xs:element name="MoveTo"/>
>                                             <xs:element name="P"/>
>                                         </xs:choice>
> </xs:element>
> So i want to have one element Item and an unbounded number of Moveto or P.Note
> that the order of the element is important.
> In java,this structure can be represented by a class "Item" with an Vector of
> Object.And in the Vector you can find a MoveTo or P
> I didn't find a structure to represent this without creating a unbounded element
> which contain my choice!But this solution create a file bigger!!
> So is anyone know what i must put in the following castor fields::
>  * @castor:field collection=
>  *               type=
>  * @castor:field-xml name=
>  *                  node=
> to solve my problem???
> thanks a lot
> 
> -----------------------------------------------------------
> 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