Today I answered a question on Stack Overflow (feel free to up vote) about JAXB and generating Java enums from an XML Schema. This is normally straight forward, but there are a couple "gotchas" to be aware of. In this post I'll demonstrate an easy and a harder use case.