I am so sorry. I Intended to save this as a draft but it  got sent out by 
accident.
Please ignore this email. It's not finished.  I have sent out a separate 
email on first question only already earlier.
Judy
----- Forwarded by Li-Wen Hsu/Nationwide/NWIE on 05/24/2007 12:32 PM -----

Li-Wen Hsu (Judy),SCJP 
IT App Development Specialist
Customer & Business Intelligence Solutions
Distribution Solutions

Phone: (614)249-4450
 
05/24/2007 12:31 PM

From
Li-Wen Hsu/Nationwide/NWIE
To
jibx-users@lists.sourceforge.net
cc

Subject
Binding elements in an ArrayList to  different fileds







Can sombody help me with the following question about JiBx binding? 

1) 
I have an ArrayList for addresslines in an Object and I would like to bind 

ArrayList[0] to addressline1 
ArrayList[1] to addressline2 
ArrayList[2] to addressline3 

Can we /How can we do this in JiBx? 

2) Can we bind objects conditionally. For example, if the contact type is 
phone, I would like to bind it to phone object and if the contact type is 
email, I would like to bind it to email object 

<ContactType>Phone</ContactType> 
<ContactNumber>6141234567<ContactNumber> 

<ContactType>Email</ContactType> 
<ContactNumber>[EMAIL PROTECTED]<ContactNumber> 

WCC 
<Email> 
        <EmailAddress>[EMAIL PROTECTED]</EmailAddress> 
        <Preferrered>Yes</Preferrered> 
<Email> 
<Phone> 
        <AreaCode>614></AreaCode> 
                                <PhoneNumber>1234567</PhoneNumber> 
                                <Preferrered>Yes</Preferrered> 
</Phone> 
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to