Git Product home page Git Product logo

can-not-deserialize-unwrapped-list-when-jacksonxmlproperty-localname-matches-j's Introduction

Problems with Root Element Names

Examples that demonstrate the problem described here: FasterXML/jackson-dataformat-xml#86

The following are 3 observations on the behavior of the jackson XmlMapper as of version 2.10.0 (and possibly earlier). This does NOT assert that the described and tested behaviour is correct or a bug.

  1. If the localname of the root element in the actual XML is the same as any of it's children, then jackson cannot deserialize, regardless of how the class is annotated.

  2. If the annotated class is given the same localname as any of it's fields, jackson will still deserialize an XML who's actual root element name does not match the annotated class.

  3. If the XML documents main root element is different than it's children, then it's children may have children with a localname that is the same as their parent so long as the parent is not the root of the entire document.

can-not-deserialize-unwrapped-list-when-jacksonxmlproperty-localname-matches-j's People

Contributors

pytry avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.