1

I'm looking for a tool to generate strongly-typed classes from XML. I would like to define XML configuration (section, ConfigurationElements etc.) and then generate classes that could handle my configuration through ConfigurationManager.

Randy Levy
  • 22,566
  • 4
  • 68
  • 94
Dmitriy Sosunov
  • 1,075
  • 3
  • 10
  • 25

2 Answers2

3

Take a look at .NET Configuration Code Generator. It uses a sample of the desired XML to infer the configuration structure and types and generate the code.

Randy Levy
  • 22,566
  • 4
  • 68
  • 94
3

Another alternative is Configuration Section Designer

enter image description here

jgauffin
  • 99,844
  • 45
  • 235
  • 372