users@jaxb.java.net

Re: Newbie compile problem

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 12 Feb 2003 13:25:53 -0800

> When I try to compile a.xsd, I get the following error:
>
> src-include.0: Failed to read included schema document
> 'http://www.someone.com/foo/bar/x.xsd'.
> line 4 of a.xsd
>
> Can I change the namespace stuff to be the path on my local machine and
> not hose up everything company "someone" is providing me? Does this
> break any kind of rules for XML Schema?

Yes, it's OK to change it if you can. But it is often less desirable to
do so because you'd like to keep the original schema intact.

XJC should have provided some solution for this kind of problem (which
is usually called as "entity resolution"), but it doesn't.

The workaround that I can think of is to configure HTTP proxy setting
(XJC has this option) so that XJC can resolve them, or perhaps you can
use the entity resolver from Norm Walsh here at Sun
(http://wwws.sun.com/software/xml/developers/resolver/)


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