I have a problem with the marshalling result with optional structures. For
example, if I have the following piece in my binding file, and all elements
within are null, I still get a <Authentication/> tag in the resulting XML. Is
this normal? If not, what am I doing wrong? If it is, how do I ensure the
empty tag is not created?
<structure name="Authentication" usage="optional">
<value name="status" field="authEnabledStatus" usage="optional"
format="SecurityStatus"/>
<collection name="AuthenticationAlgorithmList"
field="gsmAuthSecAlgorithms" usage="optional"
factory="org.jibx.runtime.Utility.arrayListFactory">
<structure name="Algorithm"
type="com.tsi.ctp.rmt.aa14.dbobjects.GsmAuthSecAlgorithms">
<value style="text" field="authAlgorithm" format="AuthAlgorythm" />
</structure>
</collection>
</structure>
Any help would be greatly appreciated
Stéphan Bourges
Advisory System Engineer
Syniverse Technologies
Office: 813.637.5464
Mobile: 813.310.3492
-------------------------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users