wixtoolset / issues

WiX Toolset Issues Tracker
http://wixtoolset.org/
130 stars 24 forks source link

How to remove empty xmlns attribute #4795

Closed wixbot closed 8 years ago

wixbot commented 9 years ago

I am trying to add new element in one existing xml file using Wix installer. My xml file content is as follows: <?xml version="1.0" encoding="utf-8"?>

I have wix code as follows:

  **<Component Id="CMP_Config_BWClientTypeFallbacks_552" Guid="889C74A4-D170-43f7-805A-95D7FAF84298" KeyPath="yes">        <Condition><![CDATA[ASPDOTNET = "2.0.0.0"]]></Condition>      <util:XmlFile Id="ClientTypeFallbacks_CreateClientType" ElementPath="//PROCESSLIST" File="C:\Work\Test.xml" Action="createElement" Name="ClientTypeFallbacks" Sequence="1" Permanent="yes" />      <util:XmlFile Id="ClientTypeFallbacks_CreateFallback" ElementPath="//PROCESSLIST/ClientTypeFallbacks" File="C:\Work\Test.xml" Action="createElement" Name="Fallback" Sequence="2" Permanent="yes" />      <util:XmlFile Id="ClientTypeFallbacks_CreateSequence" ElementPath="//PROCESSLIST/ClientTypeFallbacks/Fallback" File="C:\Work\Test.xml" Action="createElement" Name="Sequence" Value="ishop, webapi" Sequence="3" Permanent="yes" />      <util:XmlConfig Id="ClientTypeFallbacks_DeleteUSR" File="C:\Work\Test.xml" Action="delete" ElementPath="//PROCESSLIST" Node="element" On="uninstall" Sequence="1" VerifyPath="ClientTypeFallbacks"/>      </Component>**

After installation I get the file content like below:

<?xml version="1.0" encoding="utf-8"?> ishop, webapi

I got an extra empty attribute in the ClientTypeFallbacks element, i.e xmlns="".

How can I remove it or is there any way to create the new element without that attribute?

Originally opened by tarunkumar.sarkar

wixbot commented 9 years ago

Originally changed by tarunkumar.sarkar Area changed from wixtoolset.org to installer

wixbot commented 9 years ago

Originally changed by tarunkumar.sarkar Area changed from installer to extensions

wixbot commented 9 years ago

For help, please contact the wix-users mailing list.

Originally posted by robmen Resolution set to help-request Status changed from Untriaged to Resolved