You need to create a new element.  Or you can switch to XmlConfig and insert a 
document fragment.

-----Original Message-----
From: Robert O'Brien [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2008 13:14
To: 'General discussion for Windows Installer XML toolset.'
Subject: [WiX-users] how does one get XmlFile to insert literal translations of 
< and > entity settings when setting values?

Background:
---------------------------------------------------------------------
I have a wix souce file with the following XmlFile entry

<util:XmlFile Id="Service1IServiceGatewayEndpointIdentity" 
File="[#NsService.exe.config]"
    
ElementPath="/configuration/system.serviceModel/client/endpoint/identity[\[]../@bindingConfiguration=&quot;ServiceGatewayEndpoint&quot;[\]]"
    Value="[SERVICEGATEWAYIDENTITY]" Action="setValue" />

When I run my msi using "msiexec /I myServiceDeliverable.msi 
SERVICEGATEWAYIDENTITY="&lt;servicePrincipalName value='host/localhost' /&gt;" 
/l*v myServiceDeliverable.log" end up with the following xml config file 
settings.

<client>
    <endpoint binding="wsHttpBinding" 
bindingConfiguration="ServiceGatewayEndpoint" 
contract="ServiceReference1.IServiceGateway" name="ServiceGatewayEndpoint" 
behaviorConfiguration="ImpersonationBehavior" 
address="https://localhost/ServiceGateway/ServiceGateway.svc";>
        <identity>&lt;servicePrincipalName value='host/localhost' 
/&gt;</identity>
    </endpoint>
    <endpoint binding="wsHttpBinding" 
bindingConfiguration="ServiceGateway2Endpoint" 
contract="ServiceReference2.IServiceGateway2" name="ServiceGateway2Endpoint" 
behaviorConfiguration="ImpersonationBehavior" 
address="https://localhost/ServiceGateway2/ServiceGateway2.svc";>
        <identity></identity>
    </endpoint>
</client>

Question
---------------------------------------------------------------------
How does one get XmlFile to insert literal translations of &lt; and &gt; entity 
settings when setting values?

-------------------------------------------------------------------------
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


-------------------------------------------------------------------------
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