You need to be careful with braces because it's a formatted value so they need to be escaped like this: [\[] for left brace and [\]] for right brace (I think that's the syntax).
Derek -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chesong Lee Sent: Thursday, August 31, 2006 2:22 PM To: Scott Sam; wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Using XmlFile to update an existing attribute Isn't it possible to use the xpath like this? [] in XPath is not a numerical index but node test predicate. /Configuration/companyname/vals/[EMAIL PROTECTED]'something2']/@value -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sam Sent: Thursday, August 31, 2006 4:51 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Using XmlFile to update an existing attribute I'm trying to set the value of an attribute to the machine name. this is a snippet of the xml file. <Configuration> . . . <companyname> <vals> <add name="something" value="value1" /> <add name="something2" value="valueIwanttoupdate" /> </vals> </companyname> </Configuration> When I use the //Configuration/Companyname[1]/vals[1]/add[2] for the ElementPath it updates value1 no matter what add I reference. Any ideas why this happens? How can I update the value attribute of the 2nd add element in the group. I don't want to create a new element, because all the elements already exist along with all of their attributes. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users