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