Do you have a sample for XmlConfig? We're not seeing this in the XSD
and when we go to compile our sources, we get errors saying it is not
recognized.
Is the reference to wixca.wixlib required for both light.exe and candle?
Presently, we just reference it in light.exe.
Thanks!
Rory
________________________________
From: Rob Mensching [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 12:47 PM
To: Rory Clark; wix-users@lists.sourceforge.net
Subject: RE: Looking for a sample code for XML manipulation...
WiX v2's XmlConfig is a bit more powerful and will probably work better
for this case.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rory Clark
Sent: Friday, April 27, 2007 12:36 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Looking for a sample code for XML manipulation...
Preface: I found the sample located at
http://www.tramontana.co.hu/wix/lesson5.php#5.11 for manipulating XML
files and creating elements and assigning attribute values.
However, it does not quite cover our use case here.
Take this snippet of a web.config file:
<configuration>
<system.web>
<httpModules>
<add type="SomeNameSpace.Type1" name="Type1Handler"
/>
<add type="SomeNameSpace.Type2" name="Type2Handler"
/>
</httpModules>
</system.web>
</configuration>
We have code that will a WiX script, <wix:XmlFile Id="WCXml1"
File="[MODULETARGETDIR]web.config" Action="createElement" Name="add"
ElementPath="//configuration//system.web//httpModules" Sequence="1" />
that will add a new "add" element so that it looks like this:
<configuration>
<system.web>
<httpModules>
<add type="SomeNameSpace.Type1" name="Type1Handler"
/>
<add type="SomeNameSpace.Type2" name="Type2Handler"
/>
<add />
</httpModules>
</system.web>
</configuration>
Now we need to grab that new element and add the type and name attribute
values for it. There is probably an XPath construct for this, but I'm
not finding it at the moment.
Any help would be appreciated.
Thanks!
Rory
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users