Entity resolving - design problem 2003-09-26 - By Bernd Eggink
Back 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.
Regards, Bernd
-- Bernd Eggink Regionales Rechenzentrum der Uni Hamburg Bernd.Eggink@(protected) http://www.rrz.uni-hamburg.de/RRZ/B.Eggink/ __ ____ ____ ____ ____ ____ ____ ____ ____ ____ To control your jdom-interest membership: http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@(protected) .com
|
|