Skip to Content
avatar image
Former Member

complicate message mapping

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?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Sep 22, 2013 at 06:31 AM


    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 22, 2013 at 08:08 AM

    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.


    Add comment
    10|10000 characters needed characters exceeded

  • Sep 23, 2013 at 05:39 AM

    Hi Charles,

    can you share your input and output xml?

    it can give us some idea to understand your requirement.



    Add comment
    10|10000 characters needed characters exceeded