users@jaxb.java.net

Re: Partial Marshalling

From: Kohsuke Kawaguchi <kohsuke.kawaguchi_at_sun.com>
Date: Thu, 27 Oct 2005 13:15:31 -0700

Steven Waldren wrote:
> A call to marshaller.marshal (ccr.getActors(), System.out); causes nothing
> to be marshalled. That I don't understand.

Ah, that's apparently because Actors class don't have @XmlRootElement.

> I tried to add a @XmlRootElement annotation to Actors.class but that did
> nothing.

That should work actually. Or you can just put that in JAXBElement.

I also noticed that your code is generated by somewhat old version of
the JAXB RI (6/22 version). You might want to try more recent version.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com