Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

JAXB - setting multiple items

843834Jul 6 2001 — edited Jul 14 2001
Hi 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>

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 11 2001
Added on Jul 6 2001
2 comments
110 views