title: java open source generate sql query from xml
body: <p>In java, do we have an open source to generate sql from an xml file? For example, the simplest case is :</p>
  
  <pre><code>&lt;query&gt;
    &lt;select&gt;id&lt;/select&gt;
    &lt;from&gt;student&lt;/from&gt;
     &lt;equal&gt;&lt;column&gt;name&lt;/column&gt;&lt;val&gt;john&lt;/val&gt;&lt;/equal&gt;
     &lt;equal&gt;&lt;column&gt;age&lt;/column&gt;&lt;val&gt;23&lt;/val&gt;&lt;/equal&gt;
     &lt;equal&gt;&lt;column&gt;registerDate&lt;/column&gt;&lt;val&gt;03/04/1990&lt;/val&gt;&lt;/equal&gt;
  &lt;/query&gt;
  </code></pre>
  
  <p>Then it will generate a sql:</p>
  
  <pre><code>select id
  from student
  where name = 'john'
      and age = 23
      and registerDate = '03/04/1990'
  </code></pre>
  
  <p>Of course, this is simplest case, when we have between, join, it will be more complex. So do we have an open source to handle this? I don't want to use ORM like hibernate, because it goes too far. </p>
  
  <p>Thanks.</p>