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

"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 UTC