Skip to content

Add new feature, FromXmlParser.Feature.EMPTY_ELEMENT_AS_NULL #246

@cowtowncoder

Description

@cowtowncoder

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions