Same xml element in different places



Is such xml valid?



<xml>
<foo/>
<foo/>
<bar/>
<bar/>
<foo/>
<bar/>
</xml>


If it this, how should JAXB mappings look like to keep such structure?(With mapping I have created all the foos goes into single list, same with bars);


No comments:

Post a Comment