[Simple-support] How to create inner children without creating inner class?
Brought to you by:
niallg
|
From: Cristian <cri...@el...> - 2011-01-17 16:40:29
|
I need to generate an XML like this:
<Root>
<Children>
<InnerChildren>SomethingM</InnerChildren>
</Children>
</Root>
The simplest solution is creating an inner class on the Root class:
@Root
class Root{
@Element
Children element;
@Root
private static class Children{
@Element
String innerChildren;
}
}
But I want to avoid that inner class creation, since it will make things
look strange while using Root objects. Is there anyway I can achieve that
result without using inner classes?
|