JAXB 2.1 - Customize xs:any binding
问题 I want to generate java code from xsd using JAXB 2.1 XJC. I have an xsd schema provided and I can't change it. I would like to use xjc:simple mode while generating java classes from xml schema. In the xsd there are elements: <xs:any namespace="##other" processContents="lax"/> As it is stated here: http://jaxb.java.net/guide/Mapping_of__xs_any___.html I expected that these elements will be binded to: @XmlAnyElement(lax=true) public Object any; but when I use simple binding mode xjc:simple I