jackson-dataformat-xml icon indicating copy to clipboard operation
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

Results 131 jackson-dataformat-xml issues
Sort by recently updated
recently updated
newest added

If an element has an attribute and sub-element with the same name, the attribute seems to be ignored and the element value used, despite collision resolving configuration with `@JacksonXmlProperty(localName="state", isAttribute=true)`...

name-collision
most-wanted

Given the xml of: ` ` and the Text.java of: ``` public class Text { private String content; public Text() { } @JacksonXmlText public String getContent() { return content; }...

has-failing-test

XML Parsing fails with the complain that type id is missing, even when it is defined in the input xml When 'uid' attribute is completely removed from the input xml,...

has-failing-test

I configured an XmlMapper with the parser feature for rejecting duplicates, as such: ``` XmlMapper mapper = new XmlMapper(); mapper.configure(JsonParser.Feature.STRICT_DUPLICATE_DETECTION, true); ``` and the XmlMapper does not seem to support...

Since Woodstox supports validation via Stax2 extension (as could other Stax2 implementations), it should be theoretically possible to enable automatic validation. But how to trigger that via API is a...

I want to map a JsonNode to a XML. If I directly call XmlMapper write methods, this converts all the SubNode's of JsonNode as XMLElement which is fine. But I...

The `UTF-8` encoding is hard coded in the [`ToXmlGenerator`](https://fasterxml.github.io/jackson-dataformat-xml/javadoc/2.9/com/fasterxml/jackson/dataformat/xml/ser/ToXmlGenerator.html) source code: ```java if (Feature.WRITE_XML_1_1.enabledIn(_formatFeatures)) { _xmlWriter.writeStartDocument("UTF-8", "1.1"); } else if (Feature.WRITE_XML_DECLARATION.enabledIn(_formatFeatures)) { _xmlWriter.writeStartDocument("UTF-8", "1.0"); } else { return; } ```...

most-wanted
adding-declarations

I found no easy way of adding a DTD to the XML output. E.g.: ``` ... ``` It would be nice to have a feature to add such elements.

most-wanted
adding-declarations

**Describe the solution you'd like** Allow adding to the resulting XML. **Usage example** I want to serialize Java POJOs to XML in Spring REST endpoint, but include XSLT reference so...

adding-declarations

Hi, I'm using latest release 2.0.1 and I've got a problem with serializing/deserializing xml (everything works fine in JSON). I'd like to have such a xml: namename ```java public class...

name-collision
has-failing-test