title: Java library for HTML to Java (POJO) conversion
body: <p>Using <a href="http://velocity.apache.org/" rel="nofollow">Apache Velocity Api</a> we can combine Java objects (Lists, POJOs etc.) with a (HTML) <a href="http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html" rel="nofollow">template</a> and create the (HTML) output.</p>
  
  <p>Is there any Java API that can help reverse engineer this ? The input of this API could be HTML output and the template used, the output should be the data (in Java/XML format) that was used to generate the output.</p>
  
  <p>I am aware of <a href="http://httpunit.sourceforge.net/" rel="nofollow">HTTP Unit API</a>, but this just lets me extract HTML elements (like Tables). I am looking for something that extracts the data based on some template.</p>