Reputation: 2529
f.e. I have an xml:
<a> <b id="1">abc</b> <b id="22">bzzz</b> </a>
I want to map it onto Map < Integer, String >
is it possible with jaxb? If yes - how?
Thank you.
Upvotes: 2
Views: 2777
Reputation: 12817
Read documentation for XmlAdapter. It gives you what you want.