I've written a schema, which cleanly compiles. If I instantiate one of these objects, use the 'set' methods to populate it, marshal it to a data stream, and then attempt to use the Unmarshaller to unmarshal it, I get an exception : javax.xml.bind.UnmarshalException: Unexpected element ....
I'm hoping this is because I'm doing something wrong, but it seems more likely it's a bug in JAXB, right? That is, JAXB said the schema was valid, JAXB wrote the XML, and now JAXB says the XML is invalid.
Should I be pouring over the JAXB documentation trying to figure out what I did wrong, or should I be submitting a bug report?