users@jaxb.java.net

JAXB marshalling question

From: gkidd <glenn.kidd_at_gmail.com>
Date: Sun, 30 Sep 2007 19:54:37 -0700 (PDT)

I have a question about JAXB that I am hoping someone here can help me with.

Assuming I have the following java class:

@XmlElement
public class Item {
        @XmlElement;
        private String name;
}

I know that I can get JAXB to marshall this object into an xml stricture
similar to:

<item>
        <name>...</name>
</item>

Is there a way for me to get a List of type Item to output like:

<items>
        <item>
                <name>...</name>
        </item>
</items>

Specifically can I do this without having to create and annotate a holder
class? Thanks in advance for any help.
-- 
View this message in context: http://www.nabble.com/JAXB-marshalling-question-tf4545993.html#a12972663
Sent from the java.net - jaxb users mailing list archive at Nabble.com.