users@jaxb.java.net

Re: jaxb2 handle CDATA content

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Thu, 08 Feb 2007 15:27:07 -0800

moraleslos wrote:
> I'm thinking about using jaxb2 to unmarshal an xml document into a Java
> object and would like to know if it can handle elements that contain CDATA.
> For example, can jaxb2 unmarshal this appropriately--
>
> <root><sub-element><![CDATA[This is a test]]></sub-element></root>

Of course. That's like XML 101.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com