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>
Hi,

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"?>
<schema
	xmlns="http://www.w3.org/2001/XMLSchema"
 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	targetNamespace = "mynamespace"
	xsi:schemaLocation="http://www.w3.org/2001/XMLSchema
http://www.w3.org/2001/XMLSchema.xsd"    >

<annotation>
</annotation>

</schema>

(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 ?

Greetings
Andre
Received on Sunday, 6 January 2002 15:38:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT