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

Mapping with useOneAsMany function

8 Views

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.