jaxb - Bind XSD element to List of items -


is there way directly bind list of elements wrapper element. note, generating these classes xsd.

what mean this:

<wrapperelement>   <listitem />   ...   <listitem /> </wrapperelement> 

currently, unmarshal following objects:

somejaxbobject   +wrapperelement  wrapperelement   +list<listitem> listitem 

is there way directly bind wrapper element list of objects follows:

somejaxbobject   +list<listitem> listitems 

i'm guessing require custom bindings through xjb file.

thanks bunch!

you following:

@xmlelementwrapper(name="wrapperelement") @xmlelement(name="listitem") public list<listitem> getlistitems() {     return listitems; } 

Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -