Sample XML mapping definition

This code block is a generic sample of interface XML mapping:

<mapping>
  <row-match>
    <field-match fieldname="COL_1" matchvalue="123"/>
    <output-row>
      <output-field name="COL_A" copyvalue="COL_1"/>
      <!-- copy the value from COL_1 -->
      <output-field name="COL_B" value="b value"/>
      <!-- hard coded value -->
      <output-field name="COL_C" copyvalue="COL_3"/>
    </output-row>
  </row-match>
  <row-match>
    <field-match fieldname="COL_1" matchvalue="456"/>
    field-match fieldname="COL_2" matchvalue="ABC"/>
    <!-- multiple field-match elements are logically ANDed -->
    <output-row>
      <output-field name="COL_A" value="5896"/>
      <output-field name="COL_B" value="some value"/>
      <output-field name="COL_C" copyvalue="COL_3"/>
    </output-row>
    <output-row> <!-- create two output rows for this value -->
      <output-field name="COL_A" value="4938"/>
      <output-field name="COL_B" value="some other value"/>
      <output-field name="COL_C" copyvalue="COL_3"/>
    </output-row>
  </row-match>
  <row-match>
    <!-- a row-match element without field-match elements matches 
      all rows -->
    <output-row>
      <output-field name="COL_A" value="1234"/>
      <output-field name="COL_B" copyvalue="COL_2"/>
      <output-field name="COL_C" copyvalue="COL_3"/>
    </output-row>
  </row-match>
</mapping>