Skip to main content

XML Schema Quality Checker

Check for problems in W3C XML Schemas, and clearly identify any problems found.

Date Posted: October 27, 2001

alphaworks tab navigation


Update: June 29, 2004 New zip file has been tested on Windows XP (problems with unziping have been fixed).

1. Is there a way to have a single run of XML Schema Quality Checker check multiple XML Schemas?

Yes, there are 4 different ways (and they can even be used together):

In addition, if you have Eclipse or WSAD, you may select multiple files of type .xsd before choosing validate with SQC from the pop-up menu, and SQC will check all those schemas.

2. Which version of W3C XML Schema is accepted as input?

The version specified on May 2, 2001, as a W3C Recommendation is accepted. This version is described in XML Schema, in "Part 0: Primer," "Part 1: Structures," and "Part 2: Datatypes."

3. Can I get the output sent to standard out?

Yes, this is the default.

4. Can I view the output with a browser such as Internet Explorer?

If the -reportAsXML filename option is used, the output can then be viewed with Internet Explorer, or a viewable HTML file can be created by the processing of the output through an XSLT engine, such as Xalan, with supplied stylesheets.

5. Does this tool allow me to supply an instance document and have it validated against the schema?

No. Validating parsers, such as Xerces, should be used for this function.

6. For schemas in multiple documents referencing each other with include, redefine, or import, does the check cover the entire set of documents?

Yes. If the schemaLocation attributes on these elements can be de-referenced, XML Schema Quality Checker will load all documents and include them in the quality check. Depending upon whether you accept the default of -entireSchemaValid or use -requireEachDocumentValid, the tool may issue additional messages (with the second option) if the documents are not valid schemas by themselves, even if they are valid when viewed as a whole.

7. Can schemas that occur as the content of an element of another vocabulary, such as Web Services Description Language or XForms, be checked without extracting them first?

Yes. Use the option -wsdl or -xform. If there is another vocabulary and you have the schema that describes it (the "schema" may appear as the content of an element), use option -emb. In this case, make sure that you also use option -schemaLocation namespace location or noNSSchemaLocation location to specify the location of the schema to which the root element conforms.

8. What version of Web Services Description Language is accepted as input?

Version 1.1, specified on March 15, 2001, as a W3C Note: This version is described in Web Services Description Language (WSDL) 1.1.

9. What version of XForms is accepted as input?

Version 1.0, specified on November 12, 2002, as a W3C Candidate Recommendation. This version is described in XForms 1.0.

Trademarks




Related technologies