H
Houda
Here what I've been trying to do:
I've two different configuration files with the same structure. One of
them is the default setting, which gets downloaded from the server,
and the other one is the user settings. The user settings overwrite
the default settings. Similar to what .Net does with the
machine.config file and the web.config. Now I need to merge these two
files to get the actual settings.
The default settings file:
<bookmarks>
<add name="b1" lat="1" long="1"/>
<add name="b2" lat="1" long="1"/>
<add name="b3" lat="1" long="1"/>
<bookmarks/>
The user settings file:
<bookmarks>
<remove name="b1" lat="1" long="1"/>
<add name="b4" lat="1" long="1"/>
<bookmarks/>
The result after merging these two files should be:
<bookmarks>
<add name="b2" lat="1" long="1"/>
<add name="b3" lat="1" long="1"/>
<add name="b4" lat="1" long="1"/>
<bookmarks/>
Any ideas how to do this? If you think I should post this message to
another group let me know?
Thanks
Houda
I've two different configuration files with the same structure. One of
them is the default setting, which gets downloaded from the server,
and the other one is the user settings. The user settings overwrite
the default settings. Similar to what .Net does with the
machine.config file and the web.config. Now I need to merge these two
files to get the actual settings.
The default settings file:
<bookmarks>
<add name="b1" lat="1" long="1"/>
<add name="b2" lat="1" long="1"/>
<add name="b3" lat="1" long="1"/>
<bookmarks/>
The user settings file:
<bookmarks>
<remove name="b1" lat="1" long="1"/>
<add name="b4" lat="1" long="1"/>
<bookmarks/>
The result after merging these two files should be:
<bookmarks>
<add name="b2" lat="1" long="1"/>
<add name="b3" lat="1" long="1"/>
<add name="b4" lat="1" long="1"/>
<bookmarks/>
Any ideas how to do this? If you think I should post this message to
another group let me know?
Thanks
Houda