I have a java jaxb annotated class
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement()
public class xmlDoc<T> {
@XmlMixed
@XmlAnyElement(lax=false)
protected T content;
public T getContent() {
return this.content;
}
public void setContent(T t) {
this.content = t;
}
}
When I generate the xml schema using jaxb, I get the following output
<xs:complexType mixed="true" name="xmlDoc">
<xs:sequence>
<xs:any namespace="##other" processContents="skip"/>
</xs:sequence>
</xs:complexType>
Is there any annotation parameter in jaxb using which I can control the namespace of the any element type. I need ##any instead of ##other. Is this possible?