Skip to Content
Former Member
Nov 09, 2007 at 06:54 PM

Mapping with useOneAsMany function


Dear mapping ad Java experts,

I have my source structure like this:




<QTY />



<Amount />




Node Detail occurs once. Node Detail1 can occur more than once.

My target is




where node target occurs as many times as source node Detail1.

The element result is a product of Qty and Amount.

Please note that node Detail and Detail1 are at the same level. In other words, Detail1 is not a child node of Detail.

I tried using useOneAsMany, but it does not even compile right. I am pretty sure someone has an answer! Please help. Points for helpful answers.

Appreciate your help.

Thanks a lot.