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

Re: validate .xml against .xsd

From: Ian Stokes-Rees <ijs@decisionsoft.com>
Date: Thu, 29 Nov 2001 09:23:04 +0000
To: Tom Preston <tpreston@amadeusboston.com>
Cc: xmlschema-dev@w3.org
Message-ID: <20011129092256.A2178@decisionsoft.com>
validate xml against xsd
Try coping the examples from the XSDL primer.  Copy the .xml and .xsd
files onto your local system and then validate the xml with XSV (you may
need to change "schemaLocation" to point to a local file rather than a
URL).  This will show you that XSV does work.

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)

Regards,

Ian.

On Wed, Nov 28, 2001 at 05:08:32PM -0500, Tom Preston wrote:
> I would like to validate a .xml file against a valid .xsd file.  What tools
> are recommended for this purpose.  I have tried XSV and it will validate
> that the xml is well formed, but it does not complain if the xml breaks
> constraints of the xsd.  Maybe I am running it wrong, but I have tried
> everything that I can find.  Always see validation='lax' in the output.  Is
> this the problem.  How can I make it strictly validate?  Any help on this
> would be appreciated.
> 
> 

-- 
Ian Stokes-Rees, Client Services      DecisionSoft Ltd.
Telephone: +44-1865-203192            http://www.decisionsoft.com
Received on Thursday, 29 November 2001 04:23:26 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.