Quantcast
Channel: BizTalk Server General Forum
Viewing all articles
Browse latest Browse all 872

Empty node is getting generated in the output of map

$
0
0

Hi,

I have a source schema and mapping my source schema to destination schema through direct mapping ..but in the destination schema ,some empty node is getting generated even though the corresponding node is not present in the source schema .Howcome, it is getting generated .Pls find below my source xml.

Source Schema Xml :

<DrivingLicenceDetailslicenceNumber="DE36761668" issueDate="2011-06-15" administrativeNumber="DE36761668" issuingAuthority="HU " status="Valid" expiryDate="2013-06-14">
-<AdditionalLicenceStatuses >
 <StatusInfocode="1" untilDate="2012-08-13" />
 </AdditionalLicenceStatuses>
-<CategoryDetailsnumberOfCategories="1">                             (minOcc =1)
-<CategoryDetailcode="CATEGORY A" issueDate="2011-08-13"(minOcc =1) expiryDate="2031-09-08" categoryStatus="Valid">
-<AdditionalCategoryStatuses>                                      (minOcc =0)
 <StatusInfocode="1"untilDate="2012-08-13"/>
 </AdditionalCategoryStatuses>
 </CategoryDetail>
 </CategoryDetails>

 </DrivingLicenceDetails>

The AdditionalCoategoryStatuses is directly map to the destination node. If theAdditionalCoategoryStatuses node is not present in the source xml, still in the destination corresponding node is getting generated as empty .


I just wanted to know that if the min occurrence of  AdditionalCoategoryStatuses is 0 and in the source xml , that node is not present then howcome in the destination it is getting generated ? is it because of the its parentnodeCategoryDetailhas minOcc =1 ?

Regards,

Maggi





Viewing all articles
Browse latest Browse all 872

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>