Re: Using XML Schema in local directory

Lau Chung Sing <singlau_lcs@yahoo.com> writes:

> I am a beginner in XML Schemas.  I would like to ask if I have a XML
> schema (let say put in c:\schema\schema.xsd), can I set the above
> path in the namespace of the XML file I would like to validate and
> then parse the file?

Namespace names must be URIs, so use file:///c:/schema/schema.xsd as
your namespace name and that should do it.

ht
-- 
  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 Thursday, 14 February 2002 06:52:26 UTC