Package com.fasterxml.jackson.dataformat.xml.annotation
Package that contains additional annotations that can be
used to configure XML-specific aspects of serialization
and deserialization
-
Annotation Types Summary Annotation Type Description JacksonXmlCData Adding this annotation will result in value of the property to be serialized within an xmlCDATA
section.JacksonXmlElementWrapper Annotation that is similar to JAXBjakarta.xml.bind.annotation.XmlElementWrapper
, to indicate wrapper element to use (if any) for Collection types (arrays,Collection
).JacksonXmlProperty Annotation that can be used to provide XML-specific configuration for properties, above and beyond whatJsonProperty
contains.JacksonXmlRootElement Annotation that can be used to define name of root element used for the root-level object when serialized, which normally uses name of the type (class).JacksonXmlText Interface that is loosely similar tojakarta.xml.bind.annotation.XmlValue
in that it can be used on one (and only one!) property of a POJO.