users@jaxb.java.net

Re: possible to get wildcard content not registered w/JAXBContext?

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 21 Jul 2003 08:28:15 -0700

"Geis, Matt" <Matt.Geis_at_schwab.com> wrote:
> The problem is that I can't get the contents. It generates a "getAny()"
> method, which returns null. Is there a way I can have it return the
> contents as a string? I don't' want to define the actual type as String
> (I'd prefer to avoid having an huge CDATA block in my instance documents).
> I also don't want to generate JAXB classes for a whole different namespace
> (the "namespace" attribute of the "any" element is therefore missing).

1.0.1 lets you map them to DOM elements.

> DOM. However, if JAXB is currently returning a null list, I wouldn't be
> surprised if it just returned a null DOM.

You'll see real DOM elements.


regards,
--
Kohsuke Kawaguchi                  408-276-7063 (x17063)
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com