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 Elements 
      Modifier and Type Optional Element Description
      boolean value
      Whether the property text should always be within a CDATA section when serialized.
    • Element Detail

      • value

        boolean value
        Whether 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