Dear Team,

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"?>
<PROCESSLIST xmlns:i="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns="http://schemas.datacontract.org/2004/07/BusinessWorkflow.Contracts"/>
</PROCESSLIST>
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"?>
<PROCESSLIST xmlns:i="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns="http://schemas.datacontract.org/2004/07/BusinessWorkflow.Contracts";>
            <ClientTypeFallbacks xmlns="">
                        <Fallback>
                                    <Sequence>ishop, webapi</Sequence>
                        </Fallback>
            </ClientTypeFallbacks>
</PROCESSLIST>
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?

Regards,
Tarun
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to