Skip to Content
0
Former Member
Sep 13, 2007 at 09:32 AM

User define functions in Mapping - Need help...

27 Views

I have the following Source structure

<root> (1...Unbounded)

<field1>

<field2>

<field3>

</root>

and need to map this in

<target>

<fields1>

<struct1>

<field2>

</struct1>

<struct1>

<field3>

</struct1>

</target>

i.e i need to create twice the struct1 one for each field (field2, field3) no matter how many rows I have...

Example:

<row>

<f1>1.1

<f2>1.2

<f3>1.3

</row>

<row>

<f1>2.1

<f2>2.2

<f3>2.3>

</row>

should result:

<target>

<f1>1.1

<struct1>

<f>1.2

</struct1>

<struct1>

<f>1.3</f>

</struct1>

</target>

Please advide