Past week i asked for a solution to my problem. i Have to marshall and unmarshall an xml document like this...
<Range>
<RangeQualifier>Description</RangeQualifier>
<RangePrecision>From</RangePrecision>
<RangeValue>15</RangeValue>
<RangePrecision>To</RangePrecision>
<RangeValue>45</RangeValue>
</AudienceRange>
RangePrecision and RangeValue always are joined, and as you can see, can be repeatable.
the xml-schema can support this, but "I think", castor not.
If anybody know how can I do it, PLEASE, help me.
Now, i can make the unmarshal process with something like that:
<field name="setValues"
type="RangePrecisionValue"
collection="vector"
set-method="addRangePrecisionValue">
<bind-xml node="element" matches="*"/>
</field>
I add some code to the method addRangePrecisionValue. In this method i receive all the tags values and create the objects I need. But I don't find any clue with the marshall process.
Regards, Enrique.
