users@jaxb.java.net

CDATA in marshalling output?

From: Walter Klust <walter.klust_at_imatris.de>
Date: Thu, 03 Apr 2003 03:14:08 -0700

I need to build XML-Output which contains CDATA-sections. E.g.:

<response>
    <data>
        <![CDATA[
            some strange text < < <
        ]]>
    </data>
</response>


My problem is that i dont know how to tell the marshaller to stop escaping certain characters.
So far the output i am able to produce looks like this:

<response>
    <data>
        &lt;![CDATA[
            some strange text &lt; &lt; &lt;
        ]]&gt;
    </data>
</response>


Can you help me with hints or tips how to solve this problem?

regards

walter