Is there an easy way to not put values in xml if they are null?
Example:
java:
public class Account {
private Person person;
private Address address;
}
public class Person {
private String name;
private String surname;
}
public class Address {
private String city;
}
binding.xml
<mapping abstract="true" class="domain.Account" type-name="tns:AccountSmal">
<structure name="person" field="person" class="domain.Person "
type-name="tns:OsebaSmal">
<value name="name" get-method="getName" set-method="setName" />
<value name="surname" get-method="getSurname" set-method="setSurname" />
</structure>
<structure name="address" field="address" class="domain.Person "
type-name="tns:OsebaSmal">
<value name="city" get-method="getCity" set-method="setCity" />
</structure>
</mapping>
Is there any possibility that if address is null then jibx don't murshall it,
because if address is null then I get jibx exception.
Regards, Toamz
begin:vcard
fn:Tomaz Majerhold
n:Majerhold;Tomaz
org:ARNES, Slovenian NREN;Development team
adr:;;Jamova 39;Ljubljana;Ljubljana;1000;Slovenia
title:Developer
tel;work:+386 14798930
tel;fax:+386 1 479 88 99
tel;home:+386 1425 38 01
tel;cell:+386 40757229
x-mozilla-html:FALSE
url:http://www.arnes.si/
version:2.1
end:vcard
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users