Skip to Content
0
Former Member
Dec 09, 2009 at 01:22 PM

Mapping problem.

39 Views

I have the following problem.

Source structure:

<header>
   <segment>
      <value1>A</value1>
      <value2>B</value2>
   </segment>
   <segment>
      <value1>C</value1>
      <value2>D</value2>
   <segment/>
   <segment>
      <value1>E</value1>
      <value2>F</value2>
   <segment/>
</header>

If the field value1 concatenated with value2 is equal to CD somewhere in the source structure then I want to produce the following target.

<header>
   <indicator>X</indicator>
</header>

If the source structure value fileds concatenated is equal to XY then the following target.

<header>
   <indicator>B</indicator>
</header>

Otherwise the following target.

<header>
   <indicator/>
</header>

How would I solve this with a gra