This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: (IS2012 Spring Premier) '&' = > turned into '&' in XML File changes
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 12, 2013
03:25 PM
(IS2012 Spring Premier) '&' = > turned into '&' in XML File changes
Hye,
I am trying to update an xml file with some custom PROPERTIES.
Consider the following flow:
1) Let the user fill in a custom dialog (CD1) editboxes => PROPBASE1, PROPBASE2, PROPBASE3,...
2) Next custom dialog (CD2), having also editboxes => PROPA, PROPB,... (where PROPA needs to take over the value of PROPBASE1)
I don't want to use the same property bound, because PROPA should have the same start value, but a user can change it, making it differ from PROPBASE1.
PROPBASE1 should remain intact...
3) Next custom dialog (CD3), having also editboxes => PROPX, PROPY,... (where PROPX needs to also take over the value of PROPBASE1)
I don't want to use the same property bound, because PROPX should have the same start value, but a user can change it, making it differ from PROPBASE1.
PROPBASE should remain intact again... Also, if PROPA was changed in earlier step, it should not have effect on current PROPX.
To accomplish this, I have build a CustomAction, triggered on the 'Next' button with a "DoAction" on CD1.
This is a script doing the following:
//Session.Property("PROPA") = Session.Property("PROPBASE1")
//Session.Property("PROPX") = Session.Property("PROPBASE1")
This is working fine, however, when I also map on following
//Session.Property("PROPZ") = "metadata=...provider=System.Data.SqlClient;provider connection string="" + Session.Property("PROPBASE1") + ";MultipleActiveResultSets=True""
=> the '&' char is replaced in my result XML File (2 times) with the following: '&'.
This is making my xml file connectionstring invalid.
Is there a way to handle this (e.g. escape char or something)?
Thanks in advance
I am trying to update an xml file with some custom PROPERTIES.
Consider the following flow:
1) Let the user fill in a custom dialog (CD1) editboxes => PROPBASE1, PROPBASE2, PROPBASE3,...
2) Next custom dialog (CD2), having also editboxes => PROPA, PROPB,... (where PROPA needs to take over the value of PROPBASE1)
I don't want to use the same property bound, because PROPA should have the same start value, but a user can change it, making it differ from PROPBASE1.
PROPBASE1 should remain intact...
3) Next custom dialog (CD3), having also editboxes => PROPX, PROPY,... (where PROPX needs to also take over the value of PROPBASE1)
I don't want to use the same property bound, because PROPX should have the same start value, but a user can change it, making it differ from PROPBASE1.
PROPBASE should remain intact again... Also, if PROPA was changed in earlier step, it should not have effect on current PROPX.
To accomplish this, I have build a CustomAction, triggered on the 'Next' button with a "DoAction" on CD1.
This is a script doing the following:
//Session.Property("PROPA") = Session.Property("PROPBASE1")
//Session.Property("PROPX") = Session.Property("PROPBASE1")
This is working fine, however, when I also map on following
//Session.Property("PROPZ") = "metadata=...provider=System.Data.SqlClient;provider connection string="" + Session.Property("PROPBASE1") + ";MultipleActiveResultSets=True""
=> the '&' char is replaced in my result XML File (2 times) with the following: '&'.
This is making my xml file connectionstring invalid.
Is there a way to handle this (e.g. escape char or something)?
Thanks in advance
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 19, 2013
06:15 PM
I haven't tried it myself, but the help topic Creating Installations > Configuring the Target System > Modifying XML Files > Using Reserved Characters (<, >, &, ', and ") Inside Elements describes the general behavior.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 21, 2013
03:42 AM
Perhaps you just try:
provider connection string=""
--->
provider connection string=\""
=== Help ===
" "
Quotation mark
This character is not automatically replaced by its entity at run time.
===
provider connection string=""
--->
provider connection string=\""
=== Help ===
" "
Quotation mark
This character is not automatically replaced by its entity at run time.
===
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)