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
Post a Comment