users@jaxb.java.net

Re: Excluding <?xml... line from marshalled element

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Fri, 11 Jul 2003 11:22:19 -0700

Yes, this is a kind of FAQ. Search the archive with a keyword like
"XMLWriter".

Karlo Berket <kberket_at_lbl.gov> wrote:
> Is there a way to marshal an element such that the output does not
> include the usual first line? That is instead of having this output
>
> <?xml version="1.0" encoding="UTF-8">
> <myelement>hello</myelement>
>
> I would like to have just this output
>
> <myelement>hello</myelement>


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