title: WiX XmlConfig: Elements not removed on uninstall
body: <p>I'm having difficulty removing on uninstall the elements that I add to an XML file on install. Here's my setup: The XML file already exists on the machine before install and can't be remove after install because this installer is for an "add-in" to an application. I do add some elements to the XML file on install, but only want to remove some of those elements on uninstall.
  <br/>
  <br/>
  I've been searching online for answers and can't find any that fit my situation. I've tried copying the syntax of this post: <a href="https://stackoverflow.com/questions/2068743/deleting-xml-elements-in-wix">Deleting XML elements in WiX</a>, but it still isn't working. However, on install I do remove the existing elements so as to do a replace on install if the elements already exist. So, in other words, deleting an element works on install, but with the exact same tag (except the <code>Id</code> attr of course) it doesn't work on uninstall.
  <br/>
  <br/>
  Here's my code:</p>
  
  <pre><code>&lt;Component Id="C_Component" Guid="GUID-HERE"&gt;
      &lt;File Id="MainProductFile" ... /&gt;
      &lt;!-- XmlConfigs for installation are here --&gt;
      &lt;util:XmlConfig Id="XMLDEL_binding"
                File="[FILE_DIR_PATH]\File.config"
                Sequence="1"
                On="uninstall"
                Action="delete"
                ElementPath="/configuration/system.serviceModel/bindings/customBinding"
                VerifyPath="/configuration/system.serviceModel/bindings/customBinding/binding[\[]@name='!(wix.binding.name)'[\]]"
                Node="element" /&gt;
      &lt;util:XmlConfig Id="XMLDEL_endpoint"
                File="[FILE_DIR_PATH]\File.config"
                Sequence="2"
                On="uninstall"
                Action="delete"
                ElementPath="/configuration/system.serviceModel/client"
                VerifyPath="/configuration/system.serviceModel/client/endpoint[\[]@name='!(wix.endpoint.name)' and @bindingConfiguration='!(wix.endpoint.bindingConfiguration)'[\]]"
                Node="element" /&gt;
  &lt;/Component&gt;
  </code></pre>