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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -