IBM®
Skip to main content
    United States change      Terms of use
 
 
Select a scope:    
     Home      Products      Services & industry solutions      Support & downloads      My account     
alphaWorks  >  SOA and Web services  >  

XML Schema Quality Checker

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


Date Posted: October 27, 2001
Overview Requirements DownloadFAQsForum Reviews

1. Is there a way to have a single run of XML Schema Quality Checker check multiple XML Schemas?
2. Which version of W3C XML Schema is accepted as input?
3. Can I get the output sent to standard out?
4. Can I view the output with a browser such as Internet Explorer?
5. Does this tool allow me to supply an instance document and have it validated against the schema?
6. For schemas in multiple documents referencing each other with include, redefine, or import, does the check cover the entire set of documents?
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?
8. What version of Web Services Description Language is accepted as input?
9. What version of XForms is accepted as input?


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):
  1. List more than one file name on the command line
  2. Use a filespec, such as *.xsd or PO*.*
  3. Tell the tool to look for names matching the filespec in this directory and all nested (and indirectly nested) directories, using the -r command line option.
  4. List a file that has XML Schemas as the content of an element that can occur more than once in a containing vocabulary (such as WSDL or XForms), and each of the contained schemas will be checked (if an option such as -wsdl, -xform, or -emb is used).
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.
Back to top Back to top

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."
Back to top Back to top

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

Yes, this is the default.
Back to top Back to top

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.
Back to top Back to top

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.
Back to top Back to top

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.
Back to top Back to top

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.
Back to top Back to top

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.
Back to top Back to top

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.
Back to top Back to top
Download now Download now

Related technologies

For platform(s):
All Java Platforms

For topics:
schema, testing


Related resources

Real-world XML schema

developerWorks XML zone

XML tutorials

Press Articles

 

    About IBM Privacy Contact