- From: Andre Russ <russ@gmx.de>
- Date: Thu, 3 Jan 2002 22:52:59 -0500 (EST)
- To: <xmlschema-dev@w3.org>
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 UTC