title: How to connect a ResultHandler in MyBatis Mapper XML
body: <p>I found several examples how to connect a custom ResultHandler to a MyBatis Query:</p>
  
  <p>e.g. <a href="https://code.google.com/p/mybatis/wiki/ResultHandlerExample" rel="nofollow noreferrer">https://code.google.com/p/mybatis/wiki/ResultHandlerExample</a></p>
  
  <p>Unfortunately the ResultHandler given in the example never gets invoked. (As the last comment already stated)</p>
  
  <p>So I searched for a solution and found this: <a href="https://stackoverflow.com/questions/27247451/mybatis-resulthandler-is-not-invoked">MyBatis - ResultHandler is not invoked</a></p>
  
  <p>But this does not quite fit to my problem since I'm using MyBatis the xml-style way rather than the API-style way. So in my case I have no </p>
  
  <pre><code>SqlSession session = MyBatisConnectionFactory.getSqlSessionFactory().openSession(true);
  </code></pre>
  
  <p>Is there a way to connect my custom handler in the xml file, for example the <code>&lt;resultMap /&gt;</code> oder <code>&lt;select /&gt;</code> node?</p>