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
- :
- Add element into an xml file
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 27, 2011
12:59 AM
Add element into an xml file
Hi all,
I have an xml file that I needed to update with settings from an installshield dialog. I have 3 configurations that end users will selected. If end user select the configurations then the element and the attributes will created in xml file. If end user not selected no data element existed in xml file. Anybody know how to do this?
I found that installshield have capability to modify the XML file by using the XML file change. But this is in case the elements in an xml file already existed.
If my case is the elements will existed if user select the configuration from the dialog, how to do this?
Please help...
I have an xml file that I needed to update with settings from an installshield dialog. I have 3 configurations that end users will selected. If end user select the configurations then the element and the attributes will created in xml file. If end user not selected no data element existed in xml file. Anybody know how to do this?
I found that installshield have capability to modify the XML file by using the XML file change. But this is in case the elements in an xml file already existed.
If my case is the elements will existed if user select the configuration from the dialog, how to do this?
Please help...
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 27, 2011
08:55 AM
In the XML File Changes view, configure the XML changes that you'll want to occur on some of the systems, and note the name of the component that contains those changes.
On your dialog, you'll probably have something like a radio button group with radio button controls. In that case, you'll need to assign a property, such as MYXMLPROP, to the radio button control. And each radio button can have a different property value identified in the Value setting of the control.
Then you can set a condition on the XML component—something like MYXMLPROP=3, or whatever value is associated with a radio button that should trigger the XML changes. If the condition is false, the XML file changes are not made at run time.
Hopefully that's enough to get you started.
On your dialog, you'll probably have something like a radio button group with radio button controls. In that case, you'll need to assign a property, such as MYXMLPROP, to the radio button control. And each radio button can have a different property value identified in the Value setting of the control.
Then you can set a condition on the XML component—something like MYXMLPROP=3, or whatever value is associated with a radio button that should trigger the XML changes. If the condition is false, the XML file changes are not made at run time.
Hopefully that's enough to get you started.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)