It is awkward that the mapping of UML qualifiers generates two redundant, nested XML elements of the same name.
Example:
<measurementSpecificCharacteristics index="0">
<measurementSpecificCharacteristics>
<accuracy>10</accuracy>
<specificLane>lane1</specificLane>
<specificMeasurementValueType>trafficSpeed</specificMeasurementValueType>
<specificVehicleCharacteristics>
<vehicleType>motorcycle</vehicleType>
<vehicleType>car</vehicleType>
<vehicleType>van</vehicleType>
</specificVehicleCharacteristics>
</measurementSpecificCharacteristics>
</measurementSpecificCharacteristics>
The mapping should generate only one element instead.
#1
#2
#3
Probaly a Tool Problem; but need to do further research.
#4
The two layers are actually needed since the inner layer carried the type of the data structure whereas the out layer carried the index attribute that counts the occurrences