Forum Moderators: open

Message Too Old, No Replies

XML whitespace/comment stripper

Is there some Java Servlet filter code out there...

         

DamonHD

4:43 pm on Sep 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

Rather than me making all the mistakes myself while coding up my own SAX-based (streaming) XML compressor to remove redundant whitespace and comments from XHTML, is there already a freely-available Java Servlet Filter out there to do it?

I want the XML declaration and DOCTYPE left intact of course...

(I'm not after a GZIP-style compressor: I have one and will be applying it downstream of the thing I am asking for here to get a "double whammy" for those devices that can handle GZIP compressions.)

Rgds

Damon