[
http://jira.codehaus.org/browse/JIBX-222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Sosnoski updated JIBX-222:
---------------------------------
Assignee: Dennis Sosnoski
Issue Type: Improvement (was: Bug)
This is a variation of the case described at
http://jibx.sourceforge.net/bugs.html It's really an issue with ambiguity in
the binding definition, since there's no way to directly tell JiBX that you
don't want the enclosing element unless one or more of the contained values is
present. The only way to make this work the way you want is by adding a
test-method which will return true if either value is non-null, and false if
they're both null.
I'll try to come up with an approach which doesn't require any added user code
for v2.
> 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
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs