Hi,
I am using XML Data Mapping and having a problem with generating complex types while using it.
If i am having an XML like below its working fine
<?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 am getting complex types as SampleType, ConnectionType and ItemType
.
But if i have the 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 am getting complex types as SampleType, ConnectionType, ItemType, ItemType2, ItemType22, ItemType222, ItemType2222, and ItemType22222
i.e., ItemTypes were equal to number of items present in the XML.
Why this is happening and how can i solve this problem?.