I want to generate Java classes with JAXB from a XSD file. The problem is, that I always get a few classes like this one (namespace removed): public static class Action { @XmlElementRefs({ @XmlElementRef(name = "ReportStateCanceled", namespace = "http://...", type = JAXBElement.class, required = false), @XmlElementRef(name = "ReportDate", namespace = "http://...", type = JAXBElement.class, required = false), @XmlElementRef(name = "ReportStatePreliminary", namespace = "http://...", type = JAXBElement.class, required = false), @XmlElementRef(name = "DocumentID", namespace = "http://...", type =