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
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:
2 matches
Mail list logo