From: <ad...@jb...> - 2005-04-29 14:04:39
|
My question was why does it return null rather than throwing an exception? I know the reason is the namespace is missing/mismatched, but a user won't :-) JBossXB has a better chance at giving a reasonable error message than anything I could do: | Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller(); | KernelDeployment deployment = (KernelDeployment) unmarshaller.unmarshal(url.toString(), schemaBinding); | if (deployment == null) | throw new DeploymentException("Unable to parse " + url + " it is not well formed."); | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875923#3875923 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875923 |