JAXB XmlAnyElement set namespace attribute

Peapormicrome

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