.config文件SetAttribute和RemoveAttribute一起在根节点中

时间:2018-11-30 12:57:41

标签: .net app-config transformation slowcheetah

在我的.config文件的根节点中,我想放置一个SetAttribute和一个RemoveAttribute。这可能吗?

示例:

<?xml version="1.0" encoding="utf-8"?>
<securityConfig xmlns:config="urn:telerik:sitefinity:configuration" xmlns:type="urn:telerik:sitefinity:configuration:type" config:version="10.2.6645.0" authCookieName=".SFAUTH-www.xxx.com" rolesCookieName=".SFROLES-www.xxx.com" validationKey="xxx" decryptionKey="xxx" loggingCookieName=".SFLOG-www.xxx.com" disableHtmlSanitization="True" xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" xdt:Transform="SetAttributes(authCookieName,rolesCookieName,loggingCookieName) RemoveAttributes(abc,def)">
</securityConfig>

因此,我想更改某些属性,并在同一位置删除其中的一些属性。我们正在使用SlowCheetah进行转换。

0 个答案:

没有答案