users@jaxb.java.net

Re: Multiple Schemas

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Fri, 09 Jan 2004 09:25:41 -0800

> I create one XSD file that includes all the others I use, and
> xjc file to adjust prefix/suffix etc., as necessary. Then
> I generate the classes once.

That would work. I usually do:

    xjc `find . -name "*.xsd"`


> I bother to rename the runtime class to something simpler, which
> is fairly automatic in Eclipse, and I move it to a part of the
> project that is under version control. (I dont' keep generated
> classes in version control, at least while I am developing.)

Renaming the package of the runtime is as easy as rewriting the initial
"package *****" line in each class.

In fact that's how XJC generates the impl.runtime package.

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