You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected: util:XmlFile will leave attributes unchanged unless the ElementPath specifies those attributes as the target of the util:XmlFile operation, including attributes containing escaped values (e.g.,).
Observed: util:XmlFile changes all attributes in the target file so that escaped values are replaced with their unescaped equivalents.
Discussion:
I am using util:XmlFile with setValue to configure a log4net.config file; I'm using it to set the log file path and that works fine.
The problem is that elsewhere in the config file, I have this in the XML that is being modified by the util:XmlFile operation:
So you see that it is converting the 	, 
 and 
 strings into their unescaped equivalents, and as a result, log4net doesn't do what I intended.
For completeness, here is the util:XmlFile element in my .wxs file; it's working fine as far as setting the desired attribute goes, but the problem is the side effects I've described:
Expected:
).
util:XmlFile
will leave attributes unchanged unless theElementPath
specifies those attributes as the target of theutil:XmlFile
operation, including attributes containing escaped values (e.g.,Observed:
util:XmlFile
changes all attributes in the target file so that escaped values are replaced with their unescaped equivalents.Discussion:
I am using util:XmlFile with setValue to configure a log4net.config file; I'm using it to set the log file path and that works fine.
The problem is that elsewhere in the config file, I have this in the XML that is being modified by the
util:XmlFile
operation:I would expect to see the same attribute in the output. However, after the
util:XmlFile
operation runs, it looks like this:So you see that it is converting the
	
,
and

strings into their unescaped equivalents, and as a result, log4net doesn't do what I intended.For completeness, here is the
util:XmlFile
element in my .wxs file; it's working fine as far as setting the desired attribute goes, but the problem is the side effects I've described:Also, here is the XML file that it is being deployed by the setup and modified by this
util:XmlFile
operation:The text was updated successfully, but these errors were encountered: