W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2002

Re: error 2000 - Can not build schema

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 12 Sep 2002 10:13:46 +0100
To: "Gerson Mizuta Weiss" <weiss@cpqd.com.br>
Cc: <xmlschema-dev@w3.org>
Message-ID: <f5b1y7zzi2d.fsf@cogsci.ed.ac.uk>

"Gerson Mizuta Weiss" <weiss@cpqd.com.br> writes:

> Hi,
>  
> I would like some help.
> I cant parse a determined XML document. 
> It always shows the following message:
>  
> testegml.xml<Line 2, Column 149>: XSD-2000: (Error) Can not build schema ' ' located at 'gml_format.xsd'
>  
> These are the files, they are in the same location:
> testegml.xml
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <OBJECT xmlns:gml="  <http://www.opengis.net/gml> http://www.opengis.net/gml" xmlns:xsi="  <http://www.w3.org/2001/XMLSchema-instance> http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="gml_format.xsd">

It's very hard to read this, because (I presume?) your mailer has
clobbered all the URLs in this message.  Let's suppose it really looks 
like this:

<OBJECT xmlns:gml="http://www.opengis.net/gml"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:noNamespaceSchemaLocation="gml_format.xsd">

And similarly for your schema document.

If I fix these errors, and add a tiny stub features.xsd which defines
a 'location' element in the gml namespace, XSV [1] is perfectly happy.

1) What schema validator are you using?

2) Are your schema and instance valid XML, per some XML 1.0+namespace
validator?

ht

[1] http://www.w3.org/2001/03/webdata/xsv
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2002, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Thursday, 12 September 2002 05:13:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:34 GMT