W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2004

Re: default namespace

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Wed, 18 Feb 2004 17:15:02 -0500
Message-Id: <>
To: xmlschema-dev@w3.org

At 2004-02-16 23:38 +0100, Rolf Schumacher wrote:
>I run an xml editor that's able to validate against xml schema.
>I have this very simple schema:
>It perfectly validates this instantiation:
>But it does not validate this one:
>To be honest, I can't find a significant difference.

There isn't one.

>Just to make it very clear: Where is the error?

There is no error.  If you don't believe me, below is a report by MSV that 
everything is fine with your instances.

I hope this helps.

....................... Ken

t:\ftemp>type rolf.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema elementFormDefault="qualified"
  <xsd:element name="root" type="xsd:string"/>

t:\ftemp>type rolf1.xml
<?xml version="1.0" encoding="UTF-8"?>
<ns:root xmlns:ns="http://www.example.org/testNamespace">
    the string

t:\ftemp>type rolf2.xml
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns="http://www.example.org/testNamespace">
    the string
t:\ftemp>msv rolf.xsd rolf1.xml
No validation errors.

t:\ftemp>msv rolf.xsd rolf2.xml
No validation errors.


Public courses: upcoming world tour of hands-on XSL training events
Each week:    Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO
Washington, DC: 2004-03-15            San Francisco, CA: 2004-03-22
Hong Kong: 2004-05-17    Germany: 2004-05-24    England: 2004-06-07
World-wide on-site corporate, government & user group XML training!

G. Ken Holman                  mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.           http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0     +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness   http://www.CraneSoftwrights.com/x/bc
Received on Wednesday, 18 February 2004 17:15:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:04 UTC