0. Introduction Fasterxml is very easy to use for managing XML, but there are some issues that are not compatible with JAXB. Here are some examples of how to solve this handicaps 1. @XmlElementRef, @XmlMixed ... Here is an example of the generated KeyInfoType class 1 2 3 4 5 6 7 8 9 10 11 12 13 14 public class KeyInfoType { @XmlElementRefs ({ @XmlElementRef ( name = "KeyName" , namespace = "http://www.w3.org/2000/09/xmldsig#" , type = JAXBElement . class , required = false ), @XmlElementRef ( name = "KeyValue" , namespace = "http://www.w3.org/2000/09/xmldsig#" , type = JAXBElement . class , required = false ), @XmlElementRef ( name = "RetrievalMethod" , namespace = "http://www.w3.org/2000/09/xmldsig#" , type = JAXBElement . class , required = false ), @XmlElementRef ( name = "X509Data" , namespace = "http://www.w3.org/2000/...