W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2002

validating a schema against the standard

From: Andre Russ <russ@gmx.de>
Date: Thu, 3 Jan 2002 22:52:59 -0500 (EST)
To: <xmlschema-dev@w3.org>
Message-ID: <000001c194d3$2f23f320$0c00a8c0@unimatrix.local>

When I tried to validate my xml-files against an own-made schema, I run
several times into some trouble with the xml-parsers. Especially
everytime I had a bug in my schema definition (was well formed, but not
xml-schema conform). On MSXML I couldn't get very helpful errormessages
so I was going to use xerces. Even on xerces all bugs where mentioned
but not with the appropriate line and stuff.

So it would be good if I could validate my schema against the schema
specs so I have a working schema (not at all but would be fine if most
bugs (like typos or missing tags) would be recognized).

But the problem was I was not able to validate it against the specs.
I tried the following schema:

<?xml version="1.0"?>
	targetNamespace = "mynamespace"
http://www.w3.org/2001/XMLSchema.xsd"    >



(as reduced as possible)
and was using msxml 4 from a js, xerces c-1.6 from commandline,
xerces-j1.4.4 from java to validate the schema-script above. 
On Xerces-c I got the most descriptive errormessage (but not that
descriptive I could remove any):
	 Besides a lot of warnings ( e.g. "Attribute 'id' has already
been declared declared for element 'xxx'" ) I got a lot of errors  (
most:  "'##any' and 'xxxx' violate the Unique Particle Attribution r"
and many others).

What is the problem ? How to validate a script like this against the
specs ? What is the mistake I'am doing here ?

Received on Sunday, 6 January 2002 15:38:45 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:54 UTC