T
Timo Nentwig
Hi!
I defined an element foo maxOccurs="unbounded".
<xs:element name="foo" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute
name="id" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
xjc generates somewhat strange code (List getQuery() and no Setter, no
delegate method) but at least it does work on marshalling:
List l = bar.getFoo();
l.add(one);
l.add(two);
XML as expected:
<foo id="oneid" />
<foo id="twoid" />
But unmarshalling throws an exception without any more details:
Exception in thread "main" javax.xml.bind.UnmarshalException
at
org.apache.ws.jaxme.impl.JMUnmarshallerImpl.unmarshal(JMUnmarshallerImpl.java:135)
I defined an element foo maxOccurs="unbounded".
<xs:element name="foo" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute
name="id" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
xjc generates somewhat strange code (List getQuery() and no Setter, no
delegate method) but at least it does work on marshalling:
List l = bar.getFoo();
l.add(one);
l.add(two);
XML as expected:
<foo id="oneid" />
<foo id="twoid" />
But unmarshalling throws an exception without any more details:
Exception in thread "main" javax.xml.bind.UnmarshalException
at
org.apache.ws.jaxme.impl.JMUnmarshallerImpl.unmarshal(JMUnmarshallerImpl.java:135)