On Thu, May 16, 2013 at 8:50 AM, John Smith <java.dev....@gmail.com> wrote:

> In the XML I can either have only SomeCCCard1 or SomeCCCard2 but Jibx
> throws...
>

Try removing name="details".


> Also is there a way to simplify the binding for this case I have up to 20
> different mutually exclusive cards so SomeCCCard3, SomeCCCard4,
> SomeCCCard5. So the whole xml is the same except for that unfortunate tag.
> Beats me why it's not an attribute. Would have been so much simpler.
>

Putting all the various tags inside a single <structure> with each having
usage="optional" like you were doing ought to work.


> You said I should do an XSl transform? Would that not be slow? And
> pointless of putting before Jibx?
>

It's just another option. It's up to you to evaluate it for your particular
circumstances.

-Archie

-- 
Archie L. Cobbs
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to