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!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…