java - JAXB wrap non-collection fields -


given xml file each value wrapped in it's own element that:

<root>     <type1>         <foo>1</foo>     </type1>     <type2>         <bar>2</bar>     </type2> </root> 

is there easy way map this? @xmlelement("type1/foo") or @xmlelementwrapper("type1") @xmlelement("foo")? far can tell need create corresponding class model (root, type1, type2) type1 , type2 provide no added value act wrapper.


Comments

Popular posts from this blog

html - height not adding height to a empty div -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

python - Robot Framework location and name of keyword -