Perhaps you should specify the attribute in your XPath query, something like:
ElementPath='//configuration/appSettings/add[key="MatrixPath"]' Or I think '//configuration/appSettings/add[2]' would be for the second "add" node... -----Original Message----- From: Sascha Trenz [mailto:s.tr...@43gmbh.de] Sent: 10 January 2011 10:46 To: wix-users@lists.sourceforge.net Subject: [WiX-users] XML <-> DOM I´ve got a little Problem to configure the following app.conf <appSettings> <add key="DbConnection" value="Server=.\SQLEXPRESS;initial catalog=NHibernateSketches;Integrated Security=SSPI" /> <add key="Path" value="c:\sources\bin\debug" /> <add key="ClientSettingsProvider.ServiceUri" value="" /> </appSettings> I already can change the the first <add key ="DbConnection ...line, but when I try to change the second Line with the following commands Only the first line with the DbConnection Strings will be overwrite :( <util:XmlFile Id='XmlSettings4' File='[#F__Client.config]' Action='setValue' Name='key' Value='MatrixPath' ElementPath='//configuration/appSettings/add' Sequence='3' /> <util:XmlFile Id='XmlSettings5' File='[#F__Client.config]' Action='setValue' Name ='value' Value='das ist ein Test' ElementPath='//configuration/appSettings/add' Sequence='4' /> Can someone help ? ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users