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
- :
- XML File Changes Subnode issue
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
‎Jan 12, 2012
10:05 AM
XML File Changes Subnode issue
Hello All,
I'm experiencing an issue here where i'm able to edit some nodes, but not others. I can't place the real XML here due to security reasons, but i can give the general idea as to what's happening:
-
.......
Value updates in nodes 1 and 3 are working fine. However, i node 2 isn't being updated at all. This is an xml file installed with the product. It's only updated during install. All the other nodes around it are working fine.
I suspect a subnode with terminates with a /> vs. a closing tag is the culprit. Does anyone else have experience with this issue?
TIA!
I'm experiencing an issue here where i'm able to edit some nodes, but not others. I can't place the real XML here due to security reasons, but i can give the general idea as to what's happening:
-
.......
Value updates in nodes 1 and 3 are working fine. However, i node 2 isn't being updated at all. This is an xml file installed with the product. It's only updated during install. All the other nodes around it are working fine.
I suspect a subnode with terminates with a /> vs. a closing tag is the culprit. Does anyone else have experience with this issue?
TIA!
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 12, 2012
10:25 AM
oh, and if it matters it's a vs.net web.config file.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 13, 2012
09:22 AM
Anyone? 😞
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 13, 2012
11:18 AM
Can you post a sample file and what you are trying to update? I can give it a try..I have written several installers where I had to update XML in one or more files, mostly I depend on InstallScript for XML modifications.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 13, 2012
11:21 AM
I should also mention this is a basic MSI project. I can't post the real XML file as it's against company policy but furthermore it's in a secure room far from my desk and i can't print or write it out either.
Ugh. Security companies.
Ugh. Security companies.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 13, 2012
12:37 PM
Well, do you want to use node names (node1 node2 etc) to lookup the nodes or do you want to use key value pair (value1="blah" value2="blah"), so something like lookup a key with 'value1' and replace the value there?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 13, 2012
03:55 PM
The node names are unique.
I use the import function to import my XML file. This is a pretty accurate portrayal of the file:
-
.......
Node 2 is a subnode of Node 1. It's Node 2's value which is experiencing the issue.
TIA!
I use the import function to import my XML file. This is a pretty accurate portrayal of the file:
-
.......
Node 2 is a subnode of Node 1. It's Node 2's value which is experiencing the issue.
TIA!