Is there a way to make @XmlElement(true)
the default?
#202
Answered
by
pdvrieze
sschuberth
asked this question in
Q&A
-
I have to deal with an XML file that never uses attributes but encodes even primitive types as tags, so I end up with a lot of |
Beta Was this translation helpful? Give feedback.
Answered by
pdvrieze
Apr 30, 2024
Replies: 1 comment 2 replies
-
Hello @sschuberth, yes there is. There are different approaches, but |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
sschuberth
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @sschuberth, yes there is. There are different approaches, but
defaultPrimitiveOutputKind
should do this. Otherwise, override the policy with,effectiveOutputKind
, ordefaultOutputKind