[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: validate .xml against .xsd

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 29 Nov 2001 10:43:02 +0000
To: Ian Stokes-Rees <ijs@decisionsoft.com>
Cc: Tom Preston <tpreston@amadeusboston.com>, xmlschema-dev@w3.org
Message-ID: <f5by9kp7t8p.fsf@cogsci.ed.ac.uk>
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 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.