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

Re: [Moderator Action] xerces error: element must be declared ...?

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 30 Nov 2000 14:32:48 +0000
To: Dwifiandika FAULUS <dfaulus@mda.ca>
Cc: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Message-ID: <f5bg0k934z3.fsf@cogsci.ed.ac.uk>
The problem appears to be that you've got the namespaces wrong:

> <THE_MESSAGE xmlns="http://www.nlis-hub.co.uk/xmlSchema" 
>  
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" 
>  
> xsi:schemaLocation="http://www.myapps.com/xmlSchema mySchema.xsd">

Your default namespace declaration puts all your elements in a
namespace which is not the one your schema is for.

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, 30 November 2000 09:33:00 GMT

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