I am attempting to use the XmlFile TaskAction "RemoveElement" to remove an element from an WXS (in XML format) file.
I have the following MSBuild task,
<Target Name="RemoveOptionalModules" >
This seems to work when the test.xml file contain the elements from Feature
and below, anything above this i.e. /Wix/Product doesn't appear to work.
Does anyone know why or have any ideas? Does the RemoveElement action support many levels of xml hierarchy?
PS. I've checked the XPath and is correct as far as I know. Also, I have tried using XPath = "//FeatureRef[@Id='ProductFeature_PrintedReportsUI']" which works too, if I only have the Feature element block in my test.xml file, anything
above this doesn't appear to work.