Skip to Content
avatar image
Former Member

Mapping Query

Hi,

I am wondering if it is possible to as follows:

i.e. Move the unbounded element up one level as in the following example:

<evidence>

   <file>file1</file> 

   <file>file2</file>

   <file>file3</file>

</evidence>

to

<evidence>

   <file>file1</file>

</evidence>

<evidence>

   <file>file2</file>

</evidence>

<evidence>

   <file>file3</file>

</evidence>

The data is required in this format due to processing constraints within the system which receives the message. At the moment I am unable to get this to work. If I map as follows:

I get:

<evidence>

   <file>file1</file>

</evidence>

<evidence></evidence>

<evidence></evidence>

i.e. I get the correct number of 'evidence' nodes, but they are empty - guessing this is because I am mapping URL (0..1) to file (0..U), but I can't see what else to map. Anyone know how to get this to work as outlined above?

Cheers,

Paul Clements.

mq1.JPG (10.4 kB)
mq2.JPG (9.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 06, 2015 at 11:20 AM

    Hi Paul,

    Yes, It is Possible. Try this.

    First Map Evidence ->Evidence.

    From your structure, I see that Url is mapped to File. So the target structure would be

    Next

    File -> SplitbyValue(EachValue) ->url

    <evidence>

       <url>file1</url>

    </evidence>

    <evidence>

       <url>file2</url>

    </evidence>

    <evidence>

       <url>file3</url>

    </evidence>

    Hope this helps.

    -

    Sendhil

    Add comment
    10|10000 characters needed characters exceeded