users@jaxb.java.net

RE: marshal without envelope tag

From: Tomasz Toczyski <guf_at_kajak.org.pl>
Date: Tue, 23 Dec 2008 16:49:35 +0100 (CET)

Damon Goodyear :
> I believe if you set JAXB_FRAGMENT to Boolean.TRUE then you can marshall
> only the object.

I have tried:

marshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);

just before invoking
marshaller.marshal( myObject, outputStream );

But it doesn't help - I get the same exception. Maybe I do sth wrong?

-tt.