NeatCleaner's Project Page building now ...

NeatCleaner is a velocity template file parser written in Java. It transforms dirty HTML/VTL/JS to well-formed Node Tree and render the Node Tree to output pretty source. Project Summry Download

Example

NeatenCleaner nc = new NeatenCleaner(new File("d://sourceHtml.htm")); //Constructor specified the html source file
nc.addArea(new HtmlArea());         
 //add HtmlArea to the NeatenCleaner
nc.addArea(new JavaScriptArea());      
//add HtmlArea to the JavaScriptArea
nc.addArea(new VelocityArea());       
//add HtmlArea to the VelocityArea
nc.clean();   
    //creates NodeList by specified areas
//NodeList nodeList = nc.getNodeList();
  //get the nodeList
nc.write(System.out);      
//output the result

News

The latest version of neatcleaner is available through CVS (current version number).

3 June 2008

The latest version of neatcleaner is released through SF-DOWNLOAD (current version download ).

4 June 2008

 

Documentation

Developer How to

Quick Reference

License

NeatCleaner, license.

Source code

The NeatCleaner source code is the main trunk in CVS.