W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2000

Re: [Moderator Action] validating an xml without internet connection

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 10 Jul 2000 10:04:41 +0100
To: "Hans Hermawan" <hhermawa@students.wisc.edu>
Cc: <xmlschema-dev@w3.org>
Message-ID: <f5bpuomz786.fsf@cogsci.ed.ac.uk>
"Hans Hermawan" <hhermawa@students.wisc.edu> writes:

> 				   Hello...
>  I am creating an XML Parser to parse an XML code and create a data structure
> 				   for it.
> I used a schema to validate my XML. The schema is a .xsd file, and at the top
> 			of the schema there is a line
> 	   xsd:schema xmlns:xsd="http://www.w3.org/1999/XMLSchema"
> 	       then in my XML, I have this line at the very top
> 	    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> 	       xsi:noNamespaceSchemaLocation="D:\mySchema.xsd"
> Looking at the code, I realized that somehow the schema need to connect to the
> 	     internet, go the specified url and validate my xml.
> The problem is I need to be able to validate my schema without having to go to
>      the internet. Is there any way that I can validate my schema without
> 	     connecting to the internet? I tried to save the url
>  [[www.w3.org/1999/XMLSchema]] to my hard drive and calling that file at the
> 		 top line of my schema. But it doesn't work.

Sure, you can use xsi:schemaLocation _in your schema_ to provide a
pointer to a local copy of the schema for schema documents.

  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, 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/
Received on Monday, 10 July 2000 05:04:53 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:49 UTC