users@jaxb.java.net

Re: Null pointer exception during unmarshalling

From: <oro7d3_at_netscape.net>
Date: Tue, 24 Feb 2004 17:31:12 -0500

Hi,

I try to work around this issue by:
1. removing the prefix and its namespace in the root node (using the DOM API, since the Node for the BodyElement has already constructed by SAAJ)
2. pass the root node to the unmarshaller.

i.e. I change this
<m:mybody xml:m="url of schema" > <child> text </child> </m:mybody>
to
<mybody xml="url of schema" > <child> text </child></m:mybody>

But the unmarshaller has an error saying 'namespace URI of tag "child" is wrong. It must be "url of the schema" '

However, if i serialize the root node to the byte stream, and then pass this byte stream to the unmarshaller, it unmarshalls with no problem.

Can someone please tell me if there is a way to config the unmarshaller to accept the default namespace in the root node?


__________________________________________________________________
Introducing the New Netscape Internet Service.
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net