I'm wanting to update an xml file as part of my install.  Works fine as long as 
the root node does not have a default namespace.  Is this a known issue?

Xml File
<?xml version="1.0" encoding="utf-8"?>
<SqlCommandVariables 
xmlns="urn:Microsoft.VisualStudio.Data.Schema.Project.SqlCmdVars">
  <Version>1</Version>
  <Properties>
    <Property>
      <PropertyName>Path1</PropertyName>
      <PropertyValue>C:\</PropertyValue>
    </Property>
    <Property>
      <PropertyName>Path2</PropertyName>
      <PropertyValue>C:\Program Files</PropertyValue>
    </Property>
    <Property>
      <PropertyName>Path3</PropertyName>
      <PropertyValue>C:\Program Files\Microsoft</PropertyValue>
    </Property>
  </Properties>
</SqlCommandVariables>

WiX fragment

<Component Id="Database.sqlcmdvars" 
Guid="{58B4E936-A66D-4C2D-ABE0-CB1610CE880D}" DiskId="1">
   <File Id="Database.sqlcmdvars" Name="Database.sqlcmdvars" KeyPath="yes" 
Source="$(var.SimpleDatabase.TargetDir)Database.sqlcmdvars" Vital="yes" />
   <util:XmlFile Id="SetPath1Variable" Action="setValue" 
ElementPath="SqlCommandVariables/Properties/Property[\[]node() = 
'Path1'[\]]/PropertyValue" File="[#Database.sqlcmdvars]" 
SelectionLanguage="XPath" Value="[LOGPATH]"/>
</Component>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to