users@jaxb.java.net

Re: incomplete XML generated after using object factory

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 21 May 2003 10:26:41 -0700

Shashi Garje <SGarje_at_cccis.com> wrote:
> Hi
> A colleague of mine and I wrote some code independently using the object
> factory. I created the objects using the objectFactory.create.......
> methods. Eventually when I generate XML out of this object JAXB is not
> generating the root tag. It is generating the rest of the XML.
>
> The same problem is being faced by colleague.

If you pass an instance of javax.xml.bind.Element, you'll get a whole
XML. Otherwise you would see a fragment of XML.

It looks like this is what you are seeing.

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