cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping with useOneAsMany function

Former Member
0 Kudos

Dear mapping ad Java experts,

I have my source structure like this:

-


-


<Detail>

<QTY />

</Detail>

<Detail1>

<Amount />

</Detail1>

-


---

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

My target is

<target>

<result/>

</target>

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

-

null

justin_santhanam
Active Contributor
0 Kudos