App config Files

  • Thread starter Thread starter DaveP
  • Start date Start date
D

DaveP

Hi all...
Looking for some advice
We have alot of services in vb6 and im re-writing them in c#...they all use
xml files for start up config
i want to write a class to support these files...
is the best way to build collection object from the xml files
thanks
DaveP
 
Why don't you just convert your XML "files" into the standard App.Config
schema? You can use the appSettings section for most stuff, and the
System.Configuration.ConfigurationManager class methods / properties to read
them.

Peter
 
You should look into

"Custom Handers" for app.config files.

Go here;
2/8/2006
Smarter Email/Smtp setup with DotNet Configuration Sections (1.1 and 2.0)
http://sholliday.spaces.live.com/blog/


You're not interested in the smtp/email stuff, you're interested in how I
read xml out of the app.config file, and turn it into custome object(s).


There is downloadable code.

See
// (
http://msdn.microsoft.com/library/d...uide/html/cpconcreatingnewsectionhandlers.asp )
// also see http://support.microsoft.com/default.aspx?scid=kb;en-us;309045
// Article ID : 309045

But the code I have will demo it much faster.
 
Back
Top