users@jaxb.java.net

Re: can someone show me a working xsd:any example?

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 23 Jun 2004 16:12:37 -0700

> i'm trying to use xsd:any and xjc (via ant) is complaining that xsd:any
> isn't part of the namespace (i'm using the standard xmlns:xsd="blah" on
> the schema element), and suggesting that i use an import. i actually
> tried this and did an xsd:import with
> schemaLocation="http://www.w3.org/2001/XMLSchema.xsd", but nada. also,
> i tried redefining the namespace on all inner elements, but this didn't
> work either. i also tried <xjc extension="true" ... > to no avail.

It probably helps to copy the exact error message to the e-mail and post
the relevant portion of your schema.

Also, you should check the correctness of your schema by using a tool,
if possible. That would help you isolate the problem (whether it's your
schema problem or it's a JAXB problem.)

regards,
--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net