Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSV to validate schema instance

From: "David Walker" <David.W.Walker@--.-------.--.-->
To: "David Walker" <David.W.Walker@--.-------.--.-->, "Henry S. Thompson" <ht@---.--.--.-->
Date: 5/25/2004 11:40:00 PM
Thanks for your reply. I don't think an incorrect targetNamespace is the
problem. The XML file starts with:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<MyConference
xmlns="http://www.cs.cf.ac.uk/user/David.W.Walker/MyConferences">

and the Schema starts with:

<xs:schema
targetNamespace="http://www.cs.cf.ac.uk/user/David.W.Walker/MyConferences"
elementFormDefault="qualified" attributeFormDefault="unqualified"
xmlns:mc="http://www.cs.cf.ac.uk/user/David.W.Walker/MyConferences"
xmlns:xs="http://www.w3.org/2001/XMLSchema">

Regards

David

---- Original Message ----- 

From: "Henry S. Thompson" <ht@i...>
To: "David Walker" <David.W.Walker@c...>
Cc: <xmlschema-dev@w...>
Sent: Saturday, May 22, 2004 10:40 AM
Subject: Re: XSV to validate schema instance


> "David Walker" <David.W.Walker@c...> writes:
>
> > I have installed XSV under Windows and tried
> >
> > xsv  file.xml file.xsd
> >
> > to validate file.xml against the schema in file.xsd. I got no errors
> > but the output says the validation was lax, and even when I edit
> > either the xml or xsd file so that file.xml in not a valid instance
> > of file.xsd I still get no errors.
>
> This is usually a sign of a namespace mismatch, i.e. the namespace of
> the instance is not the targetNamespace of the schema.
>
> ht
> -- 
>  Henry S. Thompson, HCRC Language Technology Group, University of
Edinburgh
>                      Half-time member of W3C Team
>     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
>             Fax: (44) 131 650-4587, e-mail: ht@i...
>                    URL: http://www.ltg.ed.ac.uk/~ht/
> [mail really from me _always_ has this .sig -- mail without it is forged
spam]
>

From ht@i...  Wed May 26 04:24:21 2004
Return-Path: <ht@i...>
X-Original


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent