title: How to change an endpoint address with XML Transformation in web.config?
body: <p>I need change the address of this configuration in a web.config:</p>
  
  <pre><code>&lt;client&gt;
    &lt;endpoint address="OLD_ADDRESS"
      binding="basicHttpBinding"
      contract="Service.IService" name="BasicHttpBinding_IService" /&gt;
  &lt;/client&gt;
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code>&lt;client&gt;
    &lt;endpoint address="NEW_ADDRESS"
      binding="basicHttpBinding"
      contract="Service.IService" name="BasicHttpBinding_IService" /&gt;
  &lt;/client&gt;
  </code></pre>
  
  <p>In my XML-Transformation file (it's working, it changes another <code>add key value</code>)<br>
  I have this:</p>
  
  <pre><code>&lt;configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"&gt;
    &lt;client&gt;
      &lt;endpoint name="BasicHttpBinding_IService"
        address="NEW_ADDRESS"
        xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/&gt;
    &lt;/client&gt;
  </code></pre>
  
  <p>but it doesn't work. I don't understand why it doesn't change, if I locate by name. 
  Any help/tip will be preciated. Thanks</p>