cancel
Showing results for 
Search instead for 
Did you mean: 

complicate message mapping

former_member260907
Participant
0 Kudos

Hi Expert,

I have a complicate scenario as below,

Source structure:                                                                              target Structure

SourceNode: 1:1                                                                               targetNode: 1:unbounded

field1: 1:1                                                                                              field1: 1:1       

field2: 1:1                                                                                              field2: 1:1

subnode1:1:unbounded                                                                          field3: 1:1

   field3: 1:1                                                                                           field4: 1:1

   field4: 1:1                                                                                           field5: 1:1

   subnode11: 1:unbounded                                                                     field6: 1:1

     field5: 1:1                                             

     field6: 1: 1

source is xml file, target is flat csv file. Can anyone tell me how do the mapping?

Thanks,

Charles

Accepted Solutions (0)

Answers (3)

Answers (3)

Muniyappan
Active Contributor
0 Kudos

Hi Charles,

can you share your input and output xml?

it can give us some idea to understand your requirement.

Regards,

Muniyappan.

former_member260907
Participant
0 Kudos

Hi All,

Thanks for the reply and sorry to make you confuse. I have attached the source . Here is the target. I made some changes to make more clear.

field1 field2 13 14 A11 12

field1 field2 13 14 A12 22

field1 field2 13 14 A31 32

field1 field2 23 24 A21 12

field1 field2 13 14 A41 22

Thanks,

Charles

former_member260907
Participant
0 Kudos

resolved myself.

ambrish_mishra
Active Contributor
0 Kudos

hi Charles,

IMO, this mapping logic is not clear.

Let me explain why I think so.

  1. source node is 1:1 while target node is 1:unbounded. What can possibly be the mapping logic for target node creation. Not clear.
  2. Is Subnode 1 under Field2 or at the same level as Field2. Not clear
  3. Field 4 is in SubNode1 but occurs as independant field in the target node.
  4. Field 5 and Field 6 are at same level in source but at child level at target.

So we need to fill a lot of gaps before we can logically come to a solution.

Ambrish

former_member184789
Active Contributor
0 Kudos

Hi,

Is it such that the target node will be replicated as many times as subnode 1(As both are unbounded). Then you can simply map them one to one & use UseOneAsMany for the fields field1 & field2 as they occur only once. You may have to change the context of fields inside subnode11 to higher level. Kindly elaborate the requirement.