Skip to content

Jackson XML annotations

cowtowncoder edited this page Mar 12, 2013 · 6 revisions

h1. Additional XML-specific annotations

h2. @JacksonXmlElementWrapper

Allows specifying XML element to use for wrapping List and Map properties

h3. @JacksonXmlProperty

Allows specifying XML namespace and local name for a property; as well as whether property is to be written as an XML element or attribute.

h3. @JacksonXmlRootElement

Allows specifying XML element to use for wrapping the root element (default uses 'simple name' of the value class)

h3. @JacksonXmlText

Allows specifying that value of one property is to be serialized as "unwrapped" text, and not in an element.

Clone this wiki locally