Is it possible to insert an XML element into my web.config using Web Deploy's Parameters.xml system?
The XmlFile parameter "kind" appears to be the closest to what I need, but its match
attribute only accepts an XPath query, and I don't appear to be able to specify a non-existent element in my XPath query. (Or rather, I can specify a non-existent element - Web Deploy just ignores it.) Specifically, I would like to transform this:
<configuration>
<plugins>
<add name="bleh"/>
</plugins>
</configuration>
into this:
<configuration>
<plugins>
<add name="bleh">
<option name="foo" value="bar"/>
</add>
</plugins>
</configuration>
(Unfortunately I can't pre-stock the web.config with an empty option
element because this particular plugin system doesn't like unrecognized/empty options.)
Thanks for any ideas!