There are two JavaBean A and B. and 2 String C and D. There structure is
A
--B
----C
----D
I can marshall Object A to Xml
<A>
<B>
<C>ccc</C>
<D>ddd</D>
</B>
</A>
And In some cases, I'd like to marshall A to XML like this
<A>
<C>ccc</C>
<D>ddd</D>
</A>
Without B tag. can it be done by XMLAdapter, or other ways. it' the best if it has some dynamic ways. Thanks.