Reputation: 22606
If I have 3 objects A, B and C. Where A has B which has C, I don't want to show:
<a>
<b>
<c/>
</b>
</a>
I want to show:
<a>
<c/>
</a>
Is there any way to do it with JAXB?
Upvotes: 1
Views: 119
Reputation: 242686
You can implement XmlAdapter<C, B>
to marshal the contained C
instead of B
Upvotes: 1