I use XML data mapping and have a problem creating complex types when using it.
If I have XML, for example, below its working quality
<?xml version="1.0" standalone="yes" ?>
<Sample>
<connection>
<item Name="ABC">123</item>
<item Name="XYZ">123</item>
<item Name="MNO">123</item>
</connection>
<connection>
<item Name="ABC">123</item>
<item Name="XYZ">123</item>
<item Name="MNO">123</item>
</connection>
</Sample>
I get complex types like SampleType, ConnectionType and ItemType.
But if I have XML like
<?xml version="1.0" standalone="yes" ?>
<Sample>
<connection>
<item Name="ABC"/>
<item Name="XYZ"/>
<item Name="MNO"/>
</connection>
<connection>
<item Name="ABC"/>
<item Name="XYZ"/>
<item Name="MNO"/>
</connection>
</Sample>
I get complex types like SampleType, ConnectionType, ItemType, ItemType2, ItemType22, ItemType222, ItemType2222, and ItemType22222, i.e. ItemTypes were equal to the number of elements present in XML.
Why is this happening and how can I solve this problem?
source
share