Hi
Below is a example schema with a choice element.
The JaxB creates a class with name of "Sports"
The Sports class holds 3 members - Name, Location and Address.
I have an xml
string which is a representation of a Sports class which hold information of Name, Location Address all confiugred,
The interesting one is Location which is a choice, so is configured to either "home" or "away" element details.
Having a xml string representation of a Sports class, I apply the Unmarshaller.unmarshall() on the xml string to
obtain a populated Sports instance from the xml string.
When unmarshall() is invoked , passing in the xml String, a Sports instance is created with the Name and Address field beng populated in the new instance.
BUT the Location is not configured and remains null.
Any suggestions alternarive approach that will unmarshall and xml string ( which has Location choice configured ) successfully to a Sport instance.
Many thanks for your help
Pete