JAXB - setting multiple items
843834Jul 6 2001 — edited Jul 14 2001Hi there
I have generated a class that contains a list of items. And I noticed that the class that is generated, does not contains a setItem method at all. It has a getItem method ( List getItem() ) but no setItem. Any ideas why? And how can I solve this problem? Hope it isn't a bug in JAXB though.
I would really appreciate your help on this one.
Thanks
~Glen Verran
In the DTD the element was defined as follows:
<!ELEMENT Request ( Item*)>
<!ELEMENT Item ( Id, Name )>
<!ELEMENT Id (#PCDATA)>
<!ELEMENT Name (#PCDATA)>
My XJS File is defined as follows:
<xml-java-binding-schema version="1.0-ea">
<element name="Request" type="class" root="true"/>
<element name="Item" type="class" root="true"/>
</xml-java-binding-schema>