如果某些 PROP="0",我想从 web.config(它安装在此安装中)文件中删除一些元素
<configuration>
<thingy>
<stuff>
<item type='value1' name='name1' file='node1.txt'/>
<item type='value2' name='name2' file='node2.txt'/>
</stuff>
</thingy>
</configuration>
我正在尝试这样做
<util:XmlConfig
On="install"
Action="delete"
Id="RemoveAnElement"
Node="element"
File="Application.dll.config"
VerifyPath="/configuration/thingy/stuff/item[\[]@type='value1'[\]]"
ElementPath="/configuration/thingy/stuff"
Sequence="100"
/>
没有错误,但元素仍然存在。如何删除它?