Go the custom config way.
You can do things like crete your own collections like this:
<plantypes>
<clearplans/>
<addplan value="1" name="Business Continuity Plan"/>
<addplan value="2" name="Site Incident Plan"/>
<addplan value="3" name="Major Incident Plan"/>
<addplan value="4" name="Crisis Management Plan"/>
</plantypes>
As a side note, do we not think that xml is just getting to verbose for
configuration.
Has anybody looked at Binsor by Ayende,
http://www.ayende.com/Blog/archive/7268.aspx
I use it for my castle configuration and it is ust soooooo much more compact
and concise.
Trying to have logic and decisions in xml is beyond the mark. It is not what
it is intended for.NAnt now has a Boo alternative to Xml that is really cool.
Paul (Going off topic).
[EMAIL PROTECTED]> Date: Mon, 21 Jan 2008 10:04:48 -0600> From: [EMAIL
PROTECTED]> Subject: Re: [ADVANCED-DOTNET] Advice about app.config....> To:
[email protected]> > I would recommend creating/using the
custom config sections instead of using> the appSettings node.> It's not too
difficult to figure out and it allows you to create those> hierarchies.> I've
never been fond of Microsoft's implementation of application> configuration,
but the custom configuration ones are better and more> flexible.> On Jan 21,
2008 9:13 AM, Mark Nicholls <[EMAIL PROTECTED]> wrote:> > > Hello, I've done
this before, but using a now depricated method (I'm in> > 2008 now)...> >> > I
want to hold multiple repeated sets of configs in a config file...> >> > Now
the easy 'bodge' is to go....> >> > <?xml version="1.0" encoding="utf-8" ?>> >
<configuration>> > <appSettings>> > <add key="queue1.Address" value ="foo"/>> >
<add key="queue1.Timeout" value ="123"/>> > <add key="queue2.Address" value
="bar"/>> > <add key="queue2.Timeout" value ="3434"/>> > <add
key="queue3.Address" value ="william"/>> > <add key="queue3.Timeout" value
="4500"/>> > </appSettings>> > </configuration>> >> > and do the obvious thing
in the code...crude, but simple...I've looked at> > custom configs (again) but
it seems a really complex way of doing> > something simple...> >> > is there
middle ground somewhere?> >> > ===================================> > This list
is hosted by DevelopMentor(R) http://www.develop.com> >> > View archives and
manage your subscription(s) at> > http://discuss.develop.com> >> >
===================================> This list is hosted by DevelopMentorĀ®
http://www.develop.com> > View archives and manage your subscription(s) at
http://discuss.develop.com
_________________________________________________________________
Telly addicts unite!
http://www.searchgamesbox.com/tvtown.shtml
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com