O
oziris
Hi,
Is there a way to validate a XSD schema?
I perform a validation of a XML file according to this schema with
<code>
SchemaFactory schemaFactory =
SchemaFactory.newInstance(
XMLConstants.W3C_XML_SCHEMA_NS_URI);
Schema schemaXSD = schemaFactory.newSchema(fichierXSD);
Validator validateur = schemaXSD.newValidator();
validateur.validate(fichierXML);
</code>
but I would like as well to perform a validation of *the schema*.
Thanks.
-o--
Is there a way to validate a XSD schema?
I perform a validation of a XML file according to this schema with
<code>
SchemaFactory schemaFactory =
SchemaFactory.newInstance(
XMLConstants.W3C_XML_SCHEMA_NS_URI);
Schema schemaXSD = schemaFactory.newSchema(fichierXSD);
Validator validateur = schemaXSD.newValidator();
validateur.validate(fichierXML);
</code>
but I would like as well to perform a validation of *the schema*.
Thanks.
-o--