title: Parse xml file and replace element in batch script
body: <p>I have this config: </p>
  
  <pre><code>&lt;configuration&gt;     
      &lt;system.serviceModel&gt;     
          &lt;bindings&gt;     
              &lt;customBinding&gt;     
                  &lt;binding name="CustomBinaryBinding"&gt;     
                    &lt;binaryMessageEncoding /&gt;     
                    &lt;httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" /&gt;     
                  &lt;/binding&gt;     
              &lt;/customBinding&gt;     
          &lt;/bindings&gt;     
          &lt;client&gt;     
            &lt;endpoint address="../../PlatformAdminUtil.svc"     
                 binding="customBinding" bindingConfiguration="CustomBinaryBinding"     
                 contract="PlatformAdminUtil.PlatformAdminUtil" name="CustomBinding_PlatformAdminUtil" /&gt;     
            &lt;endpoint address="../../EntityAccess.svc"     
                  binding="customBinding" bindingConfiguration="CustomBinaryBinding"     
                  contract="PlatformEntityAccess.EntityAccess" name="CustomBinding_EntityAccess" /&gt;     
            &lt;endpoint address="../../EntityAdminAccess.svc"     
                  binding="customBinding" bindingConfiguration="CustomBinaryBinding"     
                  contract="PlatformEntityAdminAccess.EntityAdminAccess" name="CustomBinding_EntityAdminAccess" /&gt;     
            &lt;endpoint address="../../LogErrorService.svc"     
                 binding="customBinding" bindingConfiguration="CustomBinaryBinding"     
                 contract="LoggerService.LogErrorService" name="CustomBinding_LogErrorService" /&gt;     
          &lt;/client&gt;     
      &lt;/system.serviceModel&gt;     
  &lt;/configuration&gt;   
  </code></pre>
  
  <p>I want to make a .<code>bat</code> file that is capable of changing the <code>httpTransport</code> element to <code>httpsTransport</code>, but only for the binding I want, like provide the name of the binding for witch to rename the element, in this case: <code>CustomBinaryBinding</code>. I managed to do this but only to replace all strings <code>httpTransport</code> to <code>httpsTransport</code> but this is not correct because I could have some web services bindings to <code>http</code> and some to <code>https</code>. </p>