Skip to content
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 new feature, FromXmlParser.Feature.EMPTY_ELEMENT_AS_NULL #246

Closed
cowtowncoder opened this issue Jun 22, 2017 · 3 comments
Closed

Add new feature, FromXmlParser.Feature.EMPTY_ELEMENT_AS_NULL #246

cowtowncoder opened this issue Jun 22, 2017 · 3 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

Since there are two possible ways to expose XML empty element (like "" -- but not ""), it seems reasonable to allow configuration of how this is to be exposed.
Due to backwards compatibility reasons, setting should default to true, so that by default empty element would be exposed as equivalent of JSON null token (JsonToken.VALUE_NULL).
But disabling of this feature would instead expose it as JsonToken.VALUE_STRING with text value of "" (empty String).

@anton-johansson
Copy link

I'm really looking forward to this feature. Is there any ETA on 2.9.0?

I see a bunch of pre-releases here:
http://mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/jackson-dataformat-xml

But none of them seem to include this commit.

@cowtowncoder
Copy link
Member Author

I have been hoping to finalize 2.9.0 for a while now; 2.9.0.pr4 is meant as the last pre-release version.
I am now hoping to get 2.9.0 out by end of July 2017.

@anton-johansson
Copy link

Cool, thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants