[xsd-users] Importing element
Boris Kolpackov
boris at codesynthesis.com
Mon Oct 1 02:18:19 EDT 2007
Hi Nicholas,
Nicholas Yue <yue.nicholas at gmail.com> writes:
> XSD fails on parsing this line in my schema
>
> <import namespace="http://www.opengis.net/gml" schemaLocation="
> http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"/>
>
> "Gsml.xsd: error: 'http://schemas.opengis.net/gml/3.1.1/base/gml.xsd' is
> not a valid filesystem path"
XSD does not support retrieving schemas from network locations. You
will need to download gml.xsd (and all other schemas it pulls) and
change the import directive in your schema to reference the local
file, e.g.,
<import namespace="http://www.opengis.net/gml" schemaLocation="gml.xsd"/>
For notes on compiling GML schema with XSD, see the following Wiki
page:
http://wiki.codesynthesis.com/Schemas/GML
Boris
More information about the xsd-users
mailing list