title: How to use a Interceptor from NHibernate config XML file?
body: <p>I want to use a nhibernate interceptor (overriding EmptyInterceptor) without code change.</p>
  
  <p>It's possible to do it from XML config file?</p>
  
  <p>My EmptyInterceptor override class:</p>
  
  <pre><code>public class QueryNumberInterceptor : EmptyInterceptor {
          public override SqlString OnPrepareStatement(SqlString sql) {
              return base.OnPrepareStatement(sql);
          }
  }
  </code></pre>
  
  <p>My XML config file:</p>
  
  <pre><code>&lt;config&gt;
      &lt;add key="connection.driver_class" value="NHibernate.Driver.SqlClientDriver, NHibernate"/&gt;
      &lt;add key="dialect" value="NHibernate.Dialect.MsSql2008Dialect, NHibernate"/&gt;
      &lt;add key="connection.connection_string" value="ConnectionString = ${MainConnection}"/&gt;
      &lt;add key="show_sql" value="true"/&gt;
  &lt;/config&gt;
  </code></pre>