users@jaxb.java.net

Re: Ignoring DTD and using another schema to validate file

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 15 Mar 2006 11:57:59 -0800

Greg Zimmermack wrote:
> I have an xml file that has a DOCTYPE declaration in it.
> I want to ignore the DOCTYPE declaration and use another schema (.xsd) to
> validate the file while unmarshalling.
>
> Is this possible and if so, how.

This should be the default behavior of JAXB, actually. What kind of
errors do you get?


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com