Skip to content

Jackson XML annotations

cowtowncoder edited this page Mar 12, 2013 · 6 revisions

Additional XML-specific annotations

@JacksonXmlElementWrapper

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

@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.

@JacksonXmlRootElement

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

@JacksonXmlText

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

Clone this wiki locally