title: Replace web config *elements* with msdeploy parameters
body: <p>We're using msdeploy (or web deploy if you wish) to package and deploy web apps. By declaring parameters package time we can provide values at deploy time (to replace connection strings among other things).</p>
  
  <p>The problem we currently face is replacing values in applicationSettings sections in our web config. We can't get msdeploy to replace the value because the content we want to replace is the text inside an xml element, not an attribute value (the warning we get is: "Cannot set a value on node type 'Element'").</p>
  
  <p>The relevant config looks like this:</p>
  
  <pre><code>&lt;applicationSettings&gt;
    &lt;Name.Of.Assembly.Properties.Settings&gt;
      &lt;setting name="someSetting" serializeAs="String"&gt;
        &lt;value&gt;I wanna be replaced&lt;/value&gt;
      &lt;/setting&gt;
    &lt;/Name.Of.Assembly.Properties.Settings&gt;
  &lt;/applicationSettings&gt;
  </code></pre>
  
  <p>and the declare parameter xml looks like this:</p>
  
  <pre><code>&lt;parameter name="XX" defaultValue="default"&gt;
    &lt;parameterEntry kind="XmlFile"
                         scope="Web\.config$"
                         match="/configuration/applicationSettings/Name.Of.Assembly.Properties.Settings/setting[@name='someSetting']/value" /&gt;
  &lt;/parameter&gt;
  </code></pre>
  
  <p>Does msdeploy only support replacing attribute values or am I doing something wrong?</p>