Hi Danny,
Thank you for your response. I do see your point. Abstracting the model might have added some ambiguity.
The requirement is to map XML response from an SoR to REST fields of a middleware service.
The data mapping is dependent on start date in XML tag blocks. All data blocks with same date should be mapped to 1 JSON array and everytime a new date is encountered, new JSON array must be created.
I think your way of modeling it will work for the requirement. I will give it a try and see how it pans out.
Out of curiosity, might we need loop number specific constraints for requirements like considering only odd/even nodes or linear progression sequences.
Thanks again!
Cheers,
Gunesh