You can use @XmlElementWrapper for children.
-----Original Message-----
From: boraldo [mailto:boraldo_at_hotbox.ru]
Sent: 16 June 2010 20:06
To: users_at_jaxb.dev.java.net
Subject: How can I bind nested element
There is my xml:
<parent>
<children>
<child>1</child>
<child>2</child>
</children>
</parent>
I want to have the following Parent class:
Parent{
List<Child> children;
}
I don't want to have class for element 'children'.
How should I map List<Child> children ?
--
View this message in context: http://old.nabble.com/How-can-I-bind-nested-element-tp28905793p28905793.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net