I often store application config data in an app.config file in the following format:
<configuration>
<appSettings>
<add key="foo" value="foo value"/>
<add key="bar" value="bar value"/>
</appSettings>
</configuration>
This can then be easily accessed at runtime with:
string fooValue = ConfigurationManager.AppSettings["foo"];
However this approach does not seem to allow for handling nested/hierarchichal data or multiple items with the same key, e.g. I want to be able to list a number of config items that specify namespace prefix/uri pairs.
I'm findign the documentation is somewhat confusing so was wondering what the consensus was on the easiest/quickest and most convenient way of dealing with nested application config data. This is a simple per application/installation configuration - not per user.