So I'm in the process of painfully taking one XML format
and basically flatening it to have one main root node and all the elements
under it.

I have the following fragment....


<parent-mc>
    <cardNumber>1234567890</cardNumber>
</parent-mc>

<parent-vi>
    <cardNumber>1234567890</cardNumber>
</parent-vi>



What this tells us is that the cardNumber is of type mc or of type vi

The resulting model would

<root>
    <type>credit card</type>
    <acctNumber>12354567890</acctNumber>
</root>

I suspect more unmarshaller stuff right? :P

How would the binding for this look? I mean I know how to declare the
unmarshaller based on your example. But how would I deal with declaring the
different parent tags?

I also realized that I need to keep parent-mc and parent-vi in a separate
field so when I return back to the client I return back the right tag.
------------------------------------------------------------------------------
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