EclipseLink 2.2.0, build 'v20100819-r8063' API Reference

org.eclipse.persistence.oxm.annotations
Annotation Type XmlCDATA


@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface XmlCDATA

Purpose: This annotation indicates that the value held by this property should be wrapped in a CDATA section during marshal. This only applies to simple values.

Example:
 @XmlRootElement(name="customer")
 public class Customer {
    ...
    @XmlElement
    @XmlCDATA
    public String data
    ...
 }

*


EclipseLink 2.2.0, build 'v20100819-r8063' API Reference