Hi,
Andrea Cisternino:
> The problem is that when I unmarshal and immediately marshal a
> document containing the second fragment what I get is the following:
>
> <payment-type>
> <level><code>AVG958294AF</code></level>
> <instrument/> <!-- WRONG -->
> </payment-type>
The only solution I found is to change your PaymentType class to have an
"instrument" member which in turn a propr member (or whatever you want
to call it). Like this:
class PaymentType {
String level;
Instrument instrumelt;
}
class Instrument {
String propr;
}
This way, you can assign PaymentType.instrument a null value and jibx
will omit the element.
Another way might be to write your own Marshaller.
best,
Matthias
-------------------------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users