JAXB - Beans to XSD or XSD to beans?
- by bajafresh4life
I have an existing data model. I would like to express this data model in terms of XML.
It looks like I have two options if I'm to use JAXB:
Create an XSD that mirrors my data model, and use xjc to create binding objects. Marshalling and unmarshalling will involve creating a "mapping" class that would take my existing data objects and map them…