Hi guys!
I'm trying to use the any element to specify some content. My XML schema contains this:
I'm using jaxb 1.6 and it provides a method to get my any elements. In my example: List fieldList = casObject.getAny();Code:<complexType name="casObject"> <sequence> <element name="type" type="string"/> <element name="key" type="long" nillable="true" /> <any namespace="##targetNamespace" minOccurs="0" maxOccurs="unbounded" processContents="lax"/> </sequence> </complexType>
The schema validation doesn't complain, the logging interceptor shows that the additional elements are transfered, but the list is always empty. Any idea why this list is always empty?


Reply With Quote