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: Replacing XML Attribute value by an User Input
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
‎Oct 30, 2007
04:04 PM
Replacing XML Attribute value by an User Input
I am using Basic MSI Project in IS 2008. I want to replace part of the value of an attribute in an XML by an User input. Here is the XML:
DataSource1;initial catalog= UserDB;user id=TestUser;password={PASSWORD};Pooling=true;" and @password="Pass-Word" and @passwordEncrypted="False" and @type="MSSQL"]" password="Pass-Word" passwordEncrypted="False" type="MSSQL">
I want the replace the string "DataSource1" by an User input. I tried having a edit box associated with a property "[DataServer]" and redefind the XML under 'XML File Changes' something like this:
[DataServer];initial catalog= UserDB;user id=TestUser;password={PASSWORD};Pooling=true;" and @password="Pass-Word" and @passwordEncrypted="False" and @type="MSSQL"]" password="Pass-Word" passwordEncrypted="False" type="MSSQL">
I am getting the same XML as specified above (property name specified within "[]") instead of the value to be replaced by. Is the format of referring the property right? Is there any other way to acheive this?
Thanks,
Mani
I want the replace the string "DataSource1" by an User input. I tried having a edit box associated with a property "[DataServer]" and redefind the XML under 'XML File Changes' something like this:
I am getting the same XML as specified above (property name specified within "[]") instead of the value to be replaced by. Is the format of referring the property right? Is there any other way to acheive this?
Thanks,
Mani
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 31, 2007
06:59 AM
I expect you will need to use a public property to capture the user input and edit the xml.
e.g. [DATASERVER] rather than [DataServer]
e.g. [DATASERVER] rather than [DataServer]
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2007
10:21 AM
I have a similar problem but with the difference that no replacement takes place at all, the attribute remains the same.I am using a public property.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 26, 2007
04:08 PM
Ashraf, can you clarify your entire cycle better?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 29, 2007
07:32 PM
I would also like to know how to have user input change xml values.