I have a simple Java class I am annotating with JAXB:
class Foo {
@XmlAnyElement(lax=true)
List<Object> any;
}
Which produces the following schema:
<xs:complexType name="foo">
<xs:sequence>
<xs:any processContents="lax" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
Is there any way to set the namespace attribute for the <any>
element, so that it generates like:
<xs:any namespace="##targetNamespace" processContents="lax" maxOccurs="unbounded"/>