Re: trouble creating javax.xml.validation.Validator from locally cached version of XMLSchema.xsd
Michael Kay <[email protected]>
| Newsgroups | gmane.text.xml.schema.devel |
|---|---|
| Message-ID | <[email protected]> |
On 04/01/2011 22:20, Andy Davidson wrote:
> Hi Michael
>
> Can you tell me more? What do you mean by a "schema processor"?
>
> thanks
>
> Andy
>
What I mean is that if you do this:
SchemaFactory factory =
SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");
File schemaLocation = new File("docbook.xsd");
Schema schema = factory.newSchema(schemaLocation);
then you will have performed a much more rigorous check on the validity
of docbook.xsd than you will get by loading it as a source document and
validating it against XMLSchema.xsd.
Michael Kay
Saxonica