I would like to serialize an object to an XML of this form with XStream.
<node att="value">text</node>
The value of the node (text) is a field on the serialized object, as well as the att attribute. Is this possible without writing a converter for this object?
Thanks!
write a convertor, it should be something similar to the code snippet
And while using XStream,register the convertor