FasterXML / FasterXML/jackson-dataformat-xml

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

Open
#623 7 comments 0 reactions 0 assignees View on GitHub
has-failing-test
Dominant language
Java
Stars
631
Forks
246
Avg merge
7d 9h
Merged PRs (30d)
13

Description

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 abstractTextList;

}

@Data
public static class AbstractText {

@JacksonXmlProperty(isAttribute = true)
private String Label;

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

@JacksonXmlText
private String value;

}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.