users@jaxb.java.net

Re: Partial Marshalling

From: Kohsuke Kawaguchi <kohsuke.kawaguchi_at_sun.com>
Date: Fri, 14 Oct 2005 11:48:51 -0700

Steven Waldren wrote:
> Hello,
>
> I read through the archives regarding Partial Marshalling and read about and
> have the source for ElementWrapper. It using a deprecated interface
> XMLSerailizer. Also the threads were from 2003
>
> What is the latest around partial Marshalling?

Use JAXBElement.
See
http://weblogs.java.net/blog/kohsuke/archive/2005/10/101_ways_to_mar.html

> Some of my Java generated classes I can marshal - although the root element
> is missing-- and some will not marshal anything (Collections).

Collection, Map, etc can't be marshalled with JAXBElement unfortunately.
See my post.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com