-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a feature to support writing xsi:nil
attribute for null
values
#360
Comments
I'd like to give this one a go, @cowtowncoder . Any suggestion on how to tackle this? I see that we have a method |
@Migwel I fixed one typo in description: feature to add would be in generator ( But yes, I think that would be the method to modify. Looking at it, I think first cases -- attribute, "unwrapped" -- probably need to be left as is (i.e. cannot make use), and it's the 3rd case that matters. One possible complication is that while Stax generator will handle namespace declaration for |
(note: follow-up for #354
Now that Jackson processes
xsi:nil
on reader side, with 2.10, it would make sense to also emit those declarations in some cases. Since this is additional content (attribute) that some other systems might not recognize (or users not want), this should be added asToXmlGenerator.Feature
, defaulting tofalse
(i.e. do not writexsi:nil
).The text was updated successfully, but these errors were encountered: