res1st
Jun 8th, 2006, 07:25 AM
Hi guys!
I'm trying to use the any element to specify some content. My XML schema contains this:
<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>
I'm using jaxb 1.6 and it provides a method to get my any elements. In my example: List fieldList = casObject.getAny();
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?
I'm trying to use the any element to specify some content. My XML schema contains this:
<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>
I'm using jaxb 1.6 and it provides a method to get my any elements. In my example: List fieldList = casObject.getAny();
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?