XML Schema to validate XML Schemas?
Asked Answered
M

3

6

Does anyone know if its possible to validate an XML schema with another XML schema? If so, is there a reference implementation out there? I would like to parse a Schema doc using JAXB.

Manlike answered 22/10, 2010 at 12:26 Comment(0)
M
6

Of course. Most of the time you can just point your browser to the URL that serves as the namespace for the XML document. This also works with XML Schema: http://www.w3.org/2001/XMLSchema

The XSD is linked from there.

Malik answered 22/10, 2010 at 12:51 Comment(1)
+1 The XML Schema schema will let you validate whether your schema file is XML Schema valid.Dumps
D
2

Also check XSOM. This is what JAXB RI uses to load and process XSDs.

Dumpish answered 27/10, 2010 at 11:18 Comment(0)
U
2

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.

The normative XSD schemas are:

You can test the validation of an XSD schema via the command line, e.g.:

$ xmllint -noout -schema XMLSchema.xsd myschema.xsd
Unkindly answered 22/6, 2015 at 9:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.