On 11/8/05, Roshan Punnooser <[hidden email]> wrote:
> Is there anyway to set an option in xstream so that all properties are
> displayed, even if they are not set? So if I had a property foo, that was not
> set, it would print out the xml <foo/> ? Thanks.
There is no option to do this.
The reason behind this is that upon deserialization, XStream would not
know whether <foo/> should be restored as null value or an empty
instance. For example, if foo was a string it could be null or "",
which mean entirely different things.