Does anyone know if it is possible to validate an XML schema with a different XML schema? If so, is there a reference implementation there? I would like to parse a schema document using JAXB.
Sure. In most cases, you can simply point the browser to a URL that serves as a namespace for the XML document. This also works with the XML schema: http://www.w3.org/2001/XMLSchema
XSD is connected from there.
Also check out XSOM . This is what JAXB RI uses to load and process XSD.
There are two versions of the XML Schema Definition Language (XSD): 1.0 and 1.1. Version 1.0 was released in 2001, and version 1.1 was released in 2009.
XSD regulatory schemas:
You can verify that the XSD schema is correct using the command line, for example:
$ xmllint -noout -schema XMLSchema.xsd myschema.xsd