Processing XML comments in order using SAX & Cyberneko
- by Joel
I'm using cyberneko to clean and process html documents.
I need to be able to process all the comments that occur in the original html documents.
I've configured the cyberneko sax parser to process comments like so:
parser.setProperty("http://xml.org/sax/properties/lexical-handler", consumer);
...using the same consumer as I am for DOM events.…