No, I created the wxs file manually. Regards, Tarun
-----Original Message----- From: keith.doug...@statcan.gc.ca [mailto:keith.doug...@statcan.gc.ca] Sent: Friday, June 12, 2015 4:32 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] How to remove empty xmlns attribute Are you generating your wxs file by programmatically creating a .NET XML object? I discovered that when I did that I got the xmlns attribute everywhere *unless* I set it deliberately on each tag programmatically. Then and only then it doesn't appear on anything but the WiX tag. I am sure there's some thing I could do on the XML object itself to prevent that, but ... <Wix xmlns:Util="http://schemas.microsoft.com/wix/UtilExtension" xmlns="http://schemas.microsoft.com/wix/2006/wi"> Keith Douglas Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6 Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A 0T6 keith.doug...@statcan.gc.ca Telephone | Téléphone 613-854-5589 Facsimile | Télécopieur 613-951-4674 Government of Canada | Gouvernement du Canada -----Original Message----- From: Sarkar, Tarun Kumar [mailto:tarunkumar.sar...@wincor-nixdorf.com] Sent: June-12-15 9:13 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to remove empty xmlns attribute 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 ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users