Hi,
I have a class with 20 attributes, most of them are
null. I don't want to those null attributs to appear
in
my xml file after marshalling. Currently they are
appearing as empty elements.
Is there any setting I have to do in my mapping file
to achive this.
Example
Java Class
class student{
String name = "nagendra";
String address = null;
...........
}
After Marshalling currently I am getting xml file
as followes:
<student>
<name>nagendra</name>
<address/>
</student>
But Required output is as followes
<student>
<name>nagendra</name>
</student>
Thanx in advance
Nagendra
Thankyou
Nagendra
__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev