cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: SiteMap reloading
Date Tue, 20 Jun 2000 12:08:42 GMT
Mike Pogue wrote:
> 
> I could be wrong on this, but I think what you're looking for is to be notified of
> every external entity that is touched.  In the current Xerces-J there is a thing called
> "EntityResolver" that might do what you want.  It basically intercepts all external entity
> references, and you can do whatever you want with the info (including saving it for later,
> using it to invalidate caches, etc.)
> 
> Hope this helps!
> ================================================
> >From the docs:
> 
> public interface EntityResolver
> Basic interface for resolving entities.
> 
> If a SAX application needs to implement customized handling for external entities, it
must
> implement this interface and register an instance with the SAX parser using the parser's
> setEntityResolver method.
> 
> The parser will then allow the application to intercept any external entities (including
> the external DTD subset and external parameter entities, if any) before including them.
> 
> Many SAX applications will not need to implement this interface, but it will be especially
> useful for applications that build XML documents from databases or other specialised
input
> sources, or for applications that use URI types other than URLs.
> ================================================

Hmmm, yes I knew that, but how do I add a "listener" to this and handle
the events back to normal Xerces operation?

I don't want to rewrite parts of Xerces just because I need to be aware
of these calls.... any suggestion?

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message