Namespaces in MSXML are hideous things to deal with.  I think you need to use 
the same namespace as the root namespace or MSXML thinks that you're trying to 
add yourself to a new namespace.  I don't know a great way around these sorts 
of problems without lots of experimentation with XSL in MSXML.

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Gauter
Sent: Thursday, April 17, 2008 07:30
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Problem with XMLConfig Element (empty xmlns attribute)

Hi,

When adding a new element to my web.config with XmlConfig I'll get an empty 
xmlns attribute.

How can I suppress this xmlns attribute?

My Wix Code (using v3.0.3815):

<util:XmlConfig Id="oms.webconfig.stateserver"
      File="[INSTALLLOCATION]web.config"
      Action="create"
      Node="element"
      ElementPath="//configuration/system.web"
      Name="sessionState"
      On="install"
      Sequence="1"
      />

Resulting in:

<sessionState xmlns="" />

Possibly the standard xmlns attribute 
(http://schemas.microsoft.com/.NetConfiguration/v2.0)
from the root element could be causing this behavior or is a bug ?.

thx
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to