title: Change nhibernate config with nant xmlpoke
body: <p>How can I change the connection string from nhibernate.config file using nant</p>
  
  <p>the problem is that all examples are about changing attribute value, but nhibernate has inner text</p>
  
  <p>eq: </p>
  
  <pre><code>&lt;hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"&gt;
   &lt;session-factory&gt;
      &lt;property name="connection.connection_string"&gt;Data Source.\server;Database=UnitTestDb;UID=user;pwd=pass;&lt;/property&gt;
      &lt;property name="dialect"&gt;NHibernate.Dialect.MsSql2008Dialect&lt;/property&gt;
      &lt;property name="connection.provider"&gt;NHibernate.Connection.DriverConnectionProvider&lt;/property&gt;
      &lt;property name="connection.driver_class"&gt;NHibernate.Driver.SqlClientDriver&lt;/property&gt;
      &lt;property name="show_sql"&gt;true&lt;/property&gt;
      &lt;property name="connection.release_mode"&gt;auto&lt;/property&gt;
      &lt;property name="adonet.batch_size"&gt;500&lt;/property&gt;
      ....
  </code></pre>
  
  <p>I need to change property connection.connection_string</p>
  
  <pre><code>&lt;xmlpoke        file="${nhibernate.file}"
          xpath="/hibernate-configuration/session-factory/add[@key='connection.connection_string']/@value"
          value="${connection.string}"&gt;
  &lt;/xmlpoke&gt;
  </code></pre>
  
  <p>this does not work in this case.</p>
  
  <p>Thanks</p>