Re: validate .xml against .xsd

Ian Stokes-Rees <ijs@decisionsoft.com> writes:

> The likely problems are:
> mismatches in namespace,
> incorrect use of elementFormDefault,
> mismatches in schemaLocation.
> incorrect use of xmlns="..." (default namespace)
> incorrect specification of XSDL namespace
>     (should be: http://www.w3.org/2001/XMLSchema)
> incorrect specification of XSI namespace
>     (should be: http://www.w3.org/2001/XMLSchema-instance)

Ian's suggestions are all good.  Looking at the raw XML output from
XSV may give you further hints as to the source of your problem, which
is certainly something to do with namespaces -- lax validation is a
sign that no declaration for the document element of your .xml was
found in your .xsd.

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, 29 November 2001 05:41:58 UTC