Hi.
For example, before installing my module, I want to be sure that an declaration does not exists in web.config.
I use component type "config":
<component type="Config">
<config>
<configFile>web.config</configFile>
<install>
<configuration>
<nodes configfile="web.config">
<node path="/configuration/system.web/httpHandlers/*[@path='Upload.axd']" action="remove"/>
If XPath expression returns null, my module installation gets aborted.
So, is it possible to cnahge XmlMerge.RemoveNode() to be as following
private void RemoveNode(XmlNode node)
{
if (node!=null)
node.ParentNode.RemoveChild(node);
}
Thanks.