Uploaded image for project: 'CloverDX'
  1. CloverDX
  2. CLO-8009

Attribute mapping is bound to the deepest nested element

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • rel-4-1-1
    • None
    • Engine
    • Security Level: Users (General product issues)

    Description

      Say we have the following source XML:

      <?xml version="1.0" encoding="UTF-8"?>
      <parents>
      	<parent id="1">
      		<children count="2">
      			<child id="x2"></child>
      			<child id="x3">
      				<license id="z7" />			
      			</child>
      		</children>
      	</parent>
      </parents>
      

      And the following mapping:

      <Mappings>
      	<Mapping element="parents">
      		<Mapping element="parent" outPort="0"
      				xmlFields="{}id"
      				cloverFields="id">
      		</Mapping>
      	</Mapping>
      </Mappings>
      

      Since the mapping is defined on parent element, the expected output would be 1, but it returns the value of the deepest nested id attribute (z7).

      Attachments

        Issue Links

          Activity

            People

              urbanj Jaroslav Urban (Inactive)
              slechtaj Jan Slechta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: