Well, Martin, I would recommend using the .Net Configuration namespace, and
the web.config file. It may be uncomfortable to you now, but it is very
well-conceived, extensible, and standardized, meaning that other .Net
developers will already know how to use it if necessary.
However, assuming you want to go this route, check out the various
System.Xml namespaces. The .Net platform also has XML support out the wazoo.
Which namespaces and classes you use depend on how you want to use the XML.
Do you want a simple XML document, or something more strongly-typed? Do you
need to work with a DTD? A Schema? Again, the .Net platform and CLR support
all of the XML specification.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
"Martin Eyles" <> wrote in message
news:...
> web.config has loads of junk data that I don't want in my config file. I
> want an easy to write config file that I can write for each of the places
> this is installed.
>
> --
> Martin Eyles
>
>
> "Peter Kryszak" <> wrote in message
> news:986503CD-1DEA-4378-A48F-...
>> Is there some reason that you are not using
>> System.ConfigurationSettings.AppSettings() to get to the web.config file?
>>
>> This is a very easy way for ASP.NET code (C# or VB.NET) to get to
>> configuration data.
>>
>> --
>> Peter Kryszak
>> TeleCommunication Systems, Inc.
>>
>
>