users@jaxb.java.net

Re: Is it possible to tell JAXB unmarshaller to ignore namespace?

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Mon, 19 May 2008 15:01:23 +0200

include a namespace in the XML :)

On Mon, May 19, 2008 at 2:59 PM, Daniil <petrovdv_at_gmail.com> wrote:
>
> I'm using xsd schema with defined namespace for unmarshalling xml documents.
> But these xml documents do not contain namespace declaration. So there is an
> exception: "javax.xml.bind.UnmarshalException: unexpected element (uri:"",
> local:"Message"). Expected elements are
> <{http://www.something.com/xml/Message}Message> ..."
> Is it possible to tell JAXB unmarshaller to ignore namespace? Could you
> suggest a workaround for this situation?
> --
> View this message in context: http://www.nabble.com/Is-it-possible-to-tell-JAXB-unmarshaller-to-ignore-namespace--tp17316677p17316677.html
> Sent from the java.net - jaxb users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>