[jboss-user] [JBoss Web Services Users] - JAXB - elements unmarshalled to other parent
ozizka@redhat.com
do-not-reply at jboss.com
Fri Nov 13 15:25:45 EST 2009
Hi all,
I have a problem with JAXB unmarshalling. First I marshall to a XML:
| <reservationCalendars>
| <resource name="jawa02">
| <reservations>
| <reservation to="2009-11-23T17:13:20.576+01:00" from="2009-11-13T17:13:20.576+01:00" forUser="ozizka"/>
| </reservations>
| </resource>
| <resource name="jawa01">
| <reservations>
| <reservation to="2009-11-18T17:13:20.576+01:00" from="2009-11-13T17:13:20.576+01:00" forUser="ozizka"/>
| <reservation to="2009-11-23T17:13:20.576+01:00" from="2009-11-19T17:13:20.576+01:00" forUser="oskutka"/>
| </reservations>
| </resource>
| </reservationCalendars>
|
Then I unmarshall it, but JAXB reads this:
| <reservationCalendars>
| <resource name="jawa02">
| <reservations>
| <reservation to="2009-11-23T17:13:20.576+01:00" from="2009-11-13T17:13:20.576+01:00" forUser="ozizka"/>
| <reservation to="2009-11-18T17:13:20.576+01:00" from="2009-11-13T17:13:20.576+01:00" forUser="ozizka"/>
| <reservation to="2009-11-23T17:13:20.576+01:00" from="2009-11-19T17:13:20.576+01:00" forUser="oskutka"/>
| </reservations>
| </resource>
| <resource name="jawa01">
| <reservations/>
| </resource>
| </reservationCalendars>
|
It's most likely an error in my JAXB annotations.
Anyone has ever seen this? Any idea what could cause this? I can post the code if necessary.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265620#4265620
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265620
More information about the jboss-user
mailing list