W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2011

Re: trouble creating javax.xml.validation.Validator from locally cached version of XMLSchema.xsd

From: Michael Kay <mike@saxonica.com>
Date: Tue, 04 Jan 2011 23:04:05 +0000
Message-ID: <4D23A765.3040507@saxonica.com>
To: Andy Davidson <andy_davidson@apple.com>
CC: xmlschema-dev@w3.org
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
Received on Tuesday, 4 January 2011 23:08:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:30 GMT