users@jaxb.java.net

Re: JAXB-INTEREST Digest - 15 Jan 2003 to 16 Jan 2003 (#2003-14)

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Fri, 17 Jan 2003 07:52:46 -0800

> 1 - validation. I have followed the jaxb user's guide, from which i believe
> to turn of validation the following lines should be sufficent:
>
> unmarshaller = getJAXBContext().createUnmarshaller();
> unmarshaller.setValidating(false);
>
> I have done this and tried getting my application to process an invalid xml
> file, but i get the following error:

Even if you turned off the validation, it doesn't mean the unmarshaller
can process any invalid document. It just allows the unmarshaller to
process *some* invalid documents.


> Second question is the generation of a java enum class. I have the following
> part in my xsd file:

This looks like a bug. Could you send us the whole schema so that we can
test it?



regards,
--
Kohsuke KAWAGUCHI                  408-276-7063 (x17063)
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com