W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2001

Re: [Moderator Action] Valid root element in instance document

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 04 Jan 2001 09:52:17 +0000
To: "Mark Young" <mark@kamiak.com>
Cc: <xmlschema-dev@w3.org>
Message-ID: <f5bpui3k5ke.fsf@cogsci.ed.ac.uk>
"Mark Young" <mark@kamiak.com> writes:


> XML Schema allows me to define many elements at the global level.  Which of
> these elements is valid as the root element in aninstance document?  Any of
> them?  One of them in particular?  My uneducated guess is the first
> non-abstract one...  Does the Schema spec tell me the answer?  I've read it
> through several times, but not found the answer (the validation rules are
> pretty hard to understand though).

Any of them.  It's actually similar to DTDs in this regard.
Schema-aware processors may give you a way of requiring a particular
document element, but they don't have to.

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, 4 January 2001 04:52:26 GMT

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