Thanks, 

It is more simple than what I've find

<structure name="CH_LIST" ordered="false" allow-repeats="true">
        <structure name="CH" usage="optional" />
</structure> 

Thomas

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mathias
Hendrich
Sent: mercredi 13 septembre 2006 14:12
To: JiBX users
Subject: Re: [jibx-users] don(t want to bind a collection

Hello Thomas,

you could try this:

<structure name="CH_LIST"/>

It should ignore the whole structure.

Mathias



-------- Original-Nachricht --------
Datum: Wed, 13 Sep 2006 11:52:37 +0200
Von: "Fournaise Thomas" <[EMAIL PROTECTED]>
An: "\'JiBX users\'" <jibx-users@lists.sourceforge.net>
Betreff: [jibx-users] don(t want to bind a collection

> Hi,
> 
>  
> 
> I receive an XML file which has mandatory marks but I doesn't need them
> when
> I do My unmarshalling. So my problem is the following. How can I write my
> binding file that it will encounter a collection but that it doen't have
> to
> do any thing
> 
>  
> 
> My XML file : 
> 
> <BODY>      
> 
>                   <CRITERIA>
> 
>                         <STARTDATE>30/06/2006</STARTDATE>
> 
>                         <ENDDATE>07/07/2006</ENDDATE>
> 
>                         <CH_LIST>
> 
>                               <CH>K1</CH>
> 
> <CH>K2</CH>
> 
> <CH>K3</CH>
> 
>                         </CH_LIST>
> 
>                   </CRITERIA>
> 
>       </BODY>
> 
>  
> 
> I doesn't need the information between <CH_LIST> and </CH_LIST>
> 
>  
> 
> I try these :
> 
> <structure name="CH_LIST">
> 
>       <collection name="CH"/>
> 
> </structure>
> 
>  
> 
> Or 
> 
> <collection name="CH_LIST">
> 
>             <structure name="CH"/>
> 
> </collection>
> 
>  
> 
> Or
> 
> <structure name="CH_LIST">
> 
>       <collection>
> 
>             <structure name="CH"/>
> 
>       </collection>
> 
> </structure>
> 
>  
> 
> But each time it tells me that I need a store-method or a add-method
> 
>  
> 
> Thanks for help
> 
>  
> 
> Thomas
> 

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to