java - Multiple Attributes of same name - JAXB -


is possible have xmlattributes have same name. have annotated list property xmlattribute(name="default") returns as

< test default="abc cdf bhy"> expecting return < test default="abc" default="cdf" default="bhy">

is possible that?

unfortunately can't. not because of jaxb shortcoming xml attributes cannot have multiple values definition. , xml strict regarding rules.

the best workaround redefine attribute element. otherwise when need read attribute, you'll need parse , break value multiple tokens wouldn't recommend awkward , brittle.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -