jackson-dataformat-xml
jackson-dataformat-xml copied to clipboard
Extension for Jackson JSON processor that adds support for serializing POJOs as XML (and deserializing from XML) as an alternative to JSON
The following code generates an exception: ``` public class JacksonBug { public static final String XML_WORKS_1 = """ text The text node. """; public static final String XML_WORKS_2 = """...
Citing the thread in jackson-future-ideas#66, I'd like to be able to access attributes using @ in a path: `xml = "node"` and as path: `"/a/@b"` for the attribute and `"/a/b"`...
### We are using jackson-dataformat-xml to convert an XML to JavaObject. Our use case is very peculiar such that the name of the attribute and element are the same in...
- As a follow up of #597, support for deserialization of Iterator and Stream.
`@XmlJavaTypeAdapter` doesn't seem to work in conjunction with JDK's `Optional` class. I have written a unit test in order to replicate this issue: ```java package org.example; import static org.example.OptionalWithTypeAdapterTest.TestEnum.A; import...
`@XmlAttribute` and `@XmlElement` seem to work fine with records, and `@XmlValue` seems to work when serializing but deserializing fails with `java.lang.IllegalAccessException` ```java public class Main { public record TestObject (...
Hi. From version 2.12.0 deserialization timestamps works in other way. I have field in model: ``` @JacksonXmlProperty(isAttribute = true,localName = "timestampDate") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Timestamp timestampDate; ``` In...
NOTE: may be duplicate of https://github.com/FasterXML/jackson-dataformat-xml/issues/41. Description: In one of our projects we use XmlMapper to deserialize third-party XML to beans containing LocalDateTime instances. The XML stores local date and...
During Jackson migration, I discovered an issue that looks like a regression in 2.11.1. In this version, the first element in XML array is ignored when I deserialize to the...
Hi, I'm trying to parse an xml file like this: ```xml ``` This xml is generated by `clang-format -output-replacements-xml`, so it is critical that whitespaces are correctly parsed as string...