I'm trying to use XmlConfig to update a file that looks like this: <?xml version="1.0" encoding="utf-8"?> <SqlCommandVariables xmlns="urn:Microsoft.VisualStudio.Data.Schema.Project.SqlCmdVars"> <Version>1</Version> <Properties> <Property> <PropertyName>name1</PropertyName> <PropertyValue>value1</PropertyValue> </Property> <Property> <PropertyName>name2</PropertyName> <PropertyValue>value2</PropertyValue> </Property> <Property> <PropertyName>name3</PropertyName> <PropertyValue>value3</PropertyValue> </Property> </Properties> </SqlCommandVariables>
My goal is to change the text of PropertyValue where the sibling PropertyName equals a particular string. I’ve been trying to come up with XPaths to do this and I am having trouble. <util:XmlConfig Id="id" File="fileId" ElementPath="/SqlCommandVariables/Properties/Property[\[]PropertyName = 'name1'[\]]" Name="PropertyValue" Value="[PUBLICPROPERTY]" On="install"/> Of course, this isn't working and I'm sure my problem is operator error. Am I using XmlConfig incorrectly? Edwin G. Castro Software Developer - Staff Electronic Banking Services Fiserv Office: 503-746-0643 Fax: 503-617-0291 www.fiserv.com Please consider the environment before printing this e-mail ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users