users@jaxb.java.net

Re: Comments, CDATA etc. with dom binding using a Lexical Handler

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 05 Apr 2005 15:13:39 -0700

StopSpam wrote:
> Dear all,
>
> I'd like to be able to access xml comments, CDATA sections, Entities and
> DTDs through
> dom binding (<xjc:dom>).

The portion that matches to <xjc:dom> won't preserve neither comments,
CDATA sections, nor entity references.

You might be able to do a similar thing by first parsing it to DOM, then
unmarshalling it to JAXB, and accessing the original DOM, not the DOM
portion of the JAXB tree.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com