I'm very new to JAXB and would like to know if the following is possible. I have a schema which is already approved and in use, and would like to use JAXB to generate some data classes. I'm getting a bunch of classes that I would like to be attributes instead. Is it possible to get them as simple attributes instead of separate classes?
Here is an excerpt of the XML schema:
Is it possible to get Gender as just a
String member in the Person class, instead of a separate Gender class?
Is it possible to do it without changing the input format of the XML file?
Thanks very much.