users@jaxb.java.net

Re: IllegalArgumentException

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 03 Feb 2003 09:11:41 -0800

> The Custom element is defined as follows:
>
> <xsd:element name = "Custom"/>
>
> This error is not entirely unexpected given that any content is allowed. Is there a workaround?

Yes. Just make the type reference explicit:

<xsd:element name="Custom" type="xsd:anyType" />

This problem will be fixed in the next release.

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