Wrapping xml output in XStream with another element

Suepsuigree

New Member
I have this class:\[code\]Class B { private String D; private String E;}\[/code\]Using XStream, I would like to generate XML like this, where elements A and B are generated in the XML, even though they don't exist in the java.:\[code\]<A> <B> <C> <D/> <E/> </C> </B></A>\[/code\]Possible?
 
Back
Top