Annotation Type JacksonXmlCData
@Target({ANNOTATION_TYPE,FIELD,METHOD,PARAMETER})
@Retention(RUNTIME)
public @interface JacksonXmlCData
Adding this annotation will result in value of the property to be serialized
within an xml
CDATA
section. Only use on String properties and String collections.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Whether the property text should always be within a CDATA section when serialized.
-
Element Details
-
value
boolean valueWhether the property text should always be within a CDATA section when serialized. Has no meaning for deserialization; content may come from any legal character data section (CDATA or regular text segment).- Default:
- true
-