java - JAXB wrap wrapped collections -


i have class contain 2 lists. want generate wrapper element around list elements, , around 2 list.

class someclass {     private list<typea> lista;    private list<typeb> listb;  }  <some-class>     <lists>         <list-a>             <element-from-list-a />             <element-from-list-a />             <element-from-list-a />             ...         </list-a>          <list-b>             <element-from-list-b />             <element-from-list-b />             <element-from-list-b />             ...         </list-b>     </lists> </some-class> 

i can generate wrapper around list xml-element-wrapper can't wrap 2 list 1 element.

is possible in jaxb and/or in moxy implementation?

after asked question solved problem moxy's xml-path extension, i'm still interested in standard jaxb solution problem.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -