[castor-user] Question about Unmarshalling with Zero or More Elements

2005-11-22 Thread Urberg, Tim M
Hello Everyone, I am using Castor to do XML unmarshalling and the xml I'm mapping to has an element with zero or 1 occurances. I was wondering how I could map this in the xml mapping file. Here's what I have: locations locations_row location_id1/location_id

Re: [castor-user] Question about Unmarshalling with Zero or More Elements

2005-11-22 Thread Keith Visco
Tim, You need to mark your fields that are zero or more with the appropriate collection attribute as such: field name=localTier type=integer collection=arraylist bind-xml name=loc_tier node=element / /field It's a bit outdated, but take a look at the online documentation here: