Easy question:
When I see an error like:
javax.xml.bind.UnmarshalException: Unexpected attribute {}:bindingBridge
I take it the "{}" means that JAXB found that the element "bindingBridge"
was in no namespace at all? When perhaps it was supposed to be in one?
Thanks,
Gary
-----Original Message-----
From: Kohsuke Kawaguchi [mailto:Kohsuke.Kawaguchi_at_Sun.COM]
Sent: Friday, July 11, 2003 11:22
To: JAXB-INTEREST_at_JAVA.SUN.COM
Subject: Re: Excluding <?xml... line from marshalled element
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