On 28 Apr 2001 Ian Roberts wrote: > On Fri, 27 Apr 2001 [EMAIL PROTECTED] wrote:
>> Someone should probably add this question to the general faq some day... >> While Xerces is validating an instance document, it will also check the >> corresponding schema to make sure it's valid; Xerces doesn't use >> datatypes.xsd et al to do this because it can do it more efficiently >> in-house, as it were. >> >> So if you want to validate your schema, the easiest thing to do is to write >> up a trivial valid instance document and run it through the parser. >> >> Now you are right, of course, that any valid schema is an instance of the >> schemas you cited, and Xerces should be able to handle it. > Though not every document which is an instance of those schemas is a valid > schema. There is more to checking whether a schema is valid than simply > checking it against the schema for schemas. There is quite a bit more. For those who are thinking ahead to Xerces-J-1.4 where the W3C Schema Language PR specs will be supported, there is a tool you can download from http://www.alphaworks.ibm.com/tech/xmlsqc called XML Schema Quality Checker. It requires the Java 1.3 runtime, and will flag anything about your schema which is improper. Feedback on this tool can be made using the Discussion page on alphaworks linked from the tool, or by sending e-mail to [EMAIL PROTECTED] . Achille Fokoue, who wrote many of the diagnostics in this package, along with myself and Tom Gallivan and Roberto Galnares are interested in improving this tool based on user feedback. Bob Schloss IBM Thomas J. Watson Research Center Yorktown Heights, New York, USA --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
