No.  The xsi:schemaLocation attribute is just a hint to the parser about where to find the schema.  If you attach an EntityResolver to the parser (in its constructor, or by some method like setEntityResolver) you have complete control of how any URIs are looked up.  You can resolve particular namespaces to your fixed copy of the schemas in question (and can make local copies of common ones found on the Internet to avoid redundant network activity).
 
Jeff
----- Original Message -----
Sent: Tuesday, April 15, 2003 8:07 AM
Subject: Re: Can I stop SAX validation from resolving non-approved namespaces?

Hi Joseph,

Wouldn't this mean I would have to write my own version of the validate function?

Andy

>From: Joseph Kesselman <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Can I stop SAX validation from resolving non-approved namespaces?
>Date: Tue, 15 Apr 2003 11:00:56 -0400
>
>Write and install an entity resolver which filters such requests. That's
>also what you'd have to do to guard yourself against entity references.

Reply via email to