[XOM-interest] filtering processing instructions

Elliotte Harold elharo at metalab.unc.edu
Mon Sep 17 21:25:46 EDT 2007


Benson Margulies wrote:
> I'm using the Builder, and I set out to do a bit of filtering to avoid
> problems with bad processing instructions. However, the builder insists
> that the content handler be an instance of XOMHandler. 
> 

Filters in XOM are implemented as NodeFactories, not handlers. Subclass 
NodeFactory and override makeProcessingInstruction() so it returns an 
empty list.

-- 
Elliotte Rusty Harold  elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/


More information about the XOM-interest mailing list