Sign In/My Account | View Cart  
advertisement

Article:
 Serializing Java Objects with XStream
Subject: Handling of null values with XStream
Date: 2005-01-11 00:51:57
From: anuj7700

Hi Michael
I am using XStream to serialize my business object to XML. As per the default implementation with XStream the members who have null values are output as blank XML elements, however my requirement is that such elements should not come in the XML at all. Can i achieve this by setting some custom property. I do not want my XML to be containing extra tags even if the Object contains some member variables which are set to null. I hope you get my question. Thanks for your help in advance. If you are not the right person to answer this query please let me know where can i get response to my query.

No Previous Message Previous Message   Next Message Next Message


Titles Only Titles Only Newest First

Sponsored By: