Hi Stefan,

Stefan Schuster <[EMAIL PROTECTED]> wrote on 08/22/2005 12:52:56 
PM:

> Hi everybody,
> 
> I am using Xerces to validate XML documents. A problem arising newly is 
> that
> I have to work with XSDs that contain includes. These includes point to
> http locations that are not reachable from my machine. For XSLTs I would
> use an URIResolver to intercept the retrieval of such URIs and then 
> return an
> Source object obtained from a local data-store.
> 
> Any idea how to solve this?

Register an entity resolver [1] with the parser. It will be called before 
opening the include location.

> Thanks in advance,
> 
> Best regards,
> 
> Stefan
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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

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


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

Reply via email to