empty tags are created even though the values are null in the sub-element tags
& mentioned mapping as "optional"
----------------------------------------------------------------------------------------------------------------
Key: JIBX-143
URL: http://jira.codehaus.org/browse/JIBX-143
Project: JiBX
Issue Type: Bug
Components: core
Environment: Windows XP
Reporter: Maruthee Adipudi
Attachments: SubjBusinessAddressEntryVO.java
Hi,
I have a binding file as follows :
<mapping name="ADR_ENTR"
class="com.dnb.dlws.binding.SubjBusinessAddressEntryVO">
<value name="ADR_USG_CD" field="adrUsgCd" usage="optional" />
<structure name="ADR_ENTR_VW" usage="optional">
<structure name="ADR_LINE" usage="optional">
<value name="TEXT" field="adrLine1Text" usage="optional" />
<value name="TEXT_CD" field="adrLine1TextCode" usage="optional"
/>
<value name="DSPL_SEQ_NBR" field="adr1dsplSeqNbr"
usage="optional" />
</structure>
<structure name="ADR_LINE" usage="optional">
<value name="TEXT" field="adrLine2Text" usage="optional" />
<value name="TEXT_CD" field="adrLine2TextCode" usage="optional"
/>
<value name="DSPL_SEQ_NBR" field="adr2dsplSeqNbr"
usage="optional" />
</structure>
<value name="POST_TOWN" field="postTown" usage="optional" />
<value name="POST_CODE" field="postCode" usage="optional" />
<value name="CNTY" field="cnty" usage="optional" />
<value name="TERR" field="terr" usage="optional" />
<value name="GEO_REF_ID" field="geoRefId" usage="optional" />
<value name="LANG_CD" field="langCd" usage="optional" />
</structure>
</mapping>
Please find attached corresponding java file to map the fileds.
if adrLine1Text , adrLine1TextCode and adr1dsplSeqNbr ( Address Line 1) fileds
are null in the java object, JiBX should not create empty tag <ADR_LINE/> .
Here <ADR_LINE> is mentioned as "optional" tag.
In our project, there should not be any empty tags like <ADR_LINE/>. Because of
this requirement, we are evaluating other binding APIs.
It should be handleded in the subsequent release.
Please let me know if you require additional information.
Thanks
Maruthee
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs