Hi,

this is not easy to achieve with a standard mapping approach. It would be a lot easier if you could introduce an additional XML artefact that wraps <act> and <leg> instances. Would that be an option ?

Kind Regards
Werner

On 10.10.2013 01:36, Titus Rakkesh wrote:
Dear Friends,
      We have a usecase like the following,


<population>


     <person id="1" employed="no">
         <plan selected="yes">
             <act type="h6" x="9427476.50229" y="-135180.91624
<tel:135180.91624>" end_time="06:00:00" />
             <leg mode="car">
             </leg>
             <act type="w10" x="9454368.60405" y="-135416.81187"
end_time="16:00:00" />
             <leg mode="car">
             </leg>
             <act type="h6" x="9427476.50229" y="-135180.91624
<tel:135180.91624>" />
         </plan>

     </person>



     <person id="10" employed="no">
         <plan selected="yes">
             <act type="h6" x="9427476.50229" y="-135180.91624
<tel:135180.91624>" end_time="06:00:00" />
             <leg mode="car">
             </leg>
             <act type="w10" x="9454368.60405" y="-135416.81187"
end_time="16:00:00" />
             <leg mode="car">
             </leg>
             <act type="h6" x="9427476.50229" y="-135180.91624
<tel:135180.91624>" />
         </plan>

     </person>

<population>



Here important points are,
1. Under Plan element, there should be order as <act> followed by <leg>
followed by <act> then <leg>.....

How we can enforce this order? When I set as ArrayList, all <act>
elements come together? Pls assist.

Thanks,
Titus

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to