[
http://jira.codehaus.org/browse/JIBX-222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=144199#action_144199
]
James Watson commented on JIBX-222:
-----------------------------------
I have to defer to your expertise in this area given that you created this
wonderful tool. Having said that, it seems to me that if the parent element is
optional, it shouldn't show up in the output if none of its children are
present. If that would cause issues, then I would say that if a parent element
is optional and it contains required child elements, if those child elements
are missing, the parent should not be output. I tried that kind of mapping
setup and got a nasty stacktrace when I tried to serialize my object.
> Unable to eliminate empty parent element
> ----------------------------------------
>
> Key: JIBX-222
> URL: http://jira.codehaus.org/browse/JIBX-222
> Project: JiBX
> Issue Type: Improvement
> Components: core
> Affects Versions: JiBX 1.1.6
> Environment: N/A
> Reporter: James Watson
> Assignee: Dennis Sosnoski
>
> I am defining a structure with a text value and an attribute value. When
> both associated fields are null, I don't want the resulting element to appear
> in the document. I have marked the structure and the two values as optional.
> When the two fields are null in my object, I get an empty element in my
> output.
--
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
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs