Skip to content
cowtowncoder edited this page Sep 6, 2012 · 46 revisions

Home: Jackson XML databind Wiki

This is the home page for "jackson-xml-databind" project. The main deliverable of the project is a jar that contains extension to Jackson JSON library, to extend it so that it can bind XML to POJOs (and vice versa), instead of using JSON.

Basic usage:

Intended usage is by instantiating 'com.fasterxml.jackson.xml.XmlMapper', and using it just like standard Jackson 'ObjectMapper' -- the difference being that instead of JSON, external data format is XML. That is:

import com.fasterxml.jackson.xml.XmlMapper;

ObjectMapper mapper = new XmlMapper();

For most usage that is all there is!

Note that underlying JsonParser and JsonGenerator instances are specific subtypes as well (FromXmlParser, ToXmlGenerator), but usually you don't have to worry about this.

Documentation:

Javadocs:

Downloads:

Note: only needed if using a build system that requires local jars; otherwise you can just use Maven repository.

  • 2.0.5: jar (released 05-Sep-2012)
Clone this wiki locally