[jdom-interest] Entity resolving - design problem

Bernd Eggink Bernd.Eggink at rrz.uni-hamburg.de
Fri Sep 26 02:07:47 PDT 2003

On Thu, Sep 25, 2003 at 12:12:03PM -0400, Todd O'Bryan wrote:
> There is, in fact, a way to do this. You can subclass a Reader and  
> intercept the character stream on the way into the Parser. If you get  
> an ampersand followed by one of the entities you don't want to expand,  
> you pass it on as &entity;, if not, you just pass them on.
> When you write the file back through the Writer you'll have to be sure  
> that you intercept again and change &entity; back to &entity; on  
> the way out.

Actually I'll change it to the location-dependent value. Thank you - I
would have preferred  a higher-level solution, but this works well.


Bernd Eggink
Regionales Rechenzentrum der Uni Hamburg
Bernd.Eggink at rrz.uni-hamburg.de

More information about the jdom-interest mailing list