Hi Roman,

You can do that with an EntityResolver [1] or an XML Catalog [2].

[1] 
http://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/EntityResolver.html
[2] http://xerces.apache.org/xerces2-j/faq-xcatalogs.html

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

Roman Pedchenko <[EMAIL PROTECTED]> wrote on 06/12/2007 
07:34:10 AM:

> Hi there!
> 
> F.i. I have such line in my .xsd file.
> <import namespace="http://www.w3.org/XML/1998/namespace"; 
schemaLocation="
> http://www.w3.org/2001/xml.xsd"/>
> 
> And I want the validation of an xml file doing with that .xsd goes 
> ahead even when there's no internet connection at a workstation.
> 
> How can I tell to xerces to look for that mentioned xml.xsd 
> somewhere locally in jar? Mb is it possible to change schemaLocation
> attribute to point to a file inside any jar?
> 
> -- 
> Best regards,
>  Roman                 mailto:[EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to