users@jaxb.java.net

Different names for xml and java?

From: bessette <Bessette_at_pokemon-seattle.com>
Date: Thu, 6 Dec 2007 15:04:59 -0800 (PST)

I'm new to JAXB, but I got it working for my schema. However, whenever I
create an element like:

...
&lt;xs:element name="guest" type="xs:string" minOccurs="0" maxOccurs="4"
/&gt;
...

The Java class that is created has a getGuest() method instead of a
getGuests() method. Is there a way to have the xml name be "guest" and the
java name be "guests", using my example above? Sorry if this question has
been answered before, I couldn't find it anywhere.

Thanks,
Eric
-- 
View this message in context: http://www.nabble.com/Different-names-for-xml-and-java--tf4959188.html#a14203189
Sent from the java.net - jaxb users mailing list archive at Nabble.com.