Community

Mixing Nesting and References with JAXB’s XmlAdapter

(Blaise Doughan) Recently I came across a question on Stack Overflow asking if JAXB could marshal the first occurrence of an object as containment and all subsequent occurrences as a reference. Below is an expanded version of my answer (up votes appreciated) demonstrating how this can be achieved b

Read More - Register for Free Membership