J
Jeff0803
Guest
I have two configuration file like following.
((App1.Config))
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="MySection1" .....>
</configSections>
<MySection1>
<add key="name" value="aaaa" />
<add key="phone" value="111-222-3333" />
</MySection1>
</configuration>
((App2.Config))
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="MySection2" .....>
</configSections>
<MySection2>
<add key="test" value="test_yes" />
<add key="result" value="Good" />
</MySection2>
</configuration>
And then our goal should be like following.
((AppResult.Config))
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="MySection1" .....>
<section name="MySection2" .....>
</configSections>
<MySection1>
<add key="name" value="aaaa" />
<add key="phone" value="111-222-3333" />
</MySection1>
<MySection2>
<add key="test" value="test_yes" />
<add key="result" value="Good" />
</MySection2>
</configuration>
How do I do this?
Which one should I use between ConfigurationManger class and XmlDocument class?
Can anybody give me some idea?
Continue reading...
((App1.Config))
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="MySection1" .....>
</configSections>
<MySection1>
<add key="name" value="aaaa" />
<add key="phone" value="111-222-3333" />
</MySection1>
</configuration>
((App2.Config))
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="MySection2" .....>
</configSections>
<MySection2>
<add key="test" value="test_yes" />
<add key="result" value="Good" />
</MySection2>
</configuration>
And then our goal should be like following.
((AppResult.Config))
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="MySection1" .....>
<section name="MySection2" .....>
</configSections>
<MySection1>
<add key="name" value="aaaa" />
<add key="phone" value="111-222-3333" />
</MySection1>
<MySection2>
<add key="test" value="test_yes" />
<add key="result" value="Good" />
</MySection2>
</configuration>
How do I do this?
Which one should I use between ConfigurationManger class and XmlDocument class?
Can anybody give me some idea?
Continue reading...