Skip to content

If there are HTML tags within XML tags, @JacksonXmlText will assign incorrect values to the content. #623

Open
@Suny95

Description

@Suny95

If there are HTML tags within XML tags, the Jackson XML parser will assign incorrect values to the content.

image image
@Data
    public static class Abstract {

        @JacksonXmlElementWrapper(useWrapping = false)
        @JacksonXmlProperty(localName = "AbstractText")
        private List<AbstractText> abstractTextList;

    }

    @Data
    public static class AbstractText {

        @JacksonXmlProperty(isAttribute = true)
        private String Label;

        @JacksonXmlProperty(isAttribute = true, localName = "NlmCategory")
        private String category;

        @JacksonXmlText
        private String value;

    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    has-failing-testIndicates that there exists a test case (under `failing/`) to reproduce the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions