Skip to content

Improve handling of "mixed content" with XML module #402

@cowtowncoder

Description

@cowtowncoder

This is a placeholder issue for improving how Jackson handles XML content like:

<root>
   <value>123</value>
some text
   <value>345</value>
</root>

and other cases where a nesting level has both element(s) and at least one non-blank text value (content other than whitespace).

Currently such content can not be supported at all, and it is difficult to really find a general way of mapping this into POJOs.

However, it should be possible to have some level of support, for example maybe allow reading into JsonNode in some form -- considering that such text content could perhaps be mapped into empty key (and assuming handling of repeated Object keys can be resolved).
They may be other approaches too; to be discussed here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    mixed-contentIssue related to XML mixed content

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions