Custom configuration in .NET
问题 I am seeing simple examples regarding custom configuration in .NET. My case is a bit more complex, with nested nodes. I'd like to be able to read this from the configuration file: <environments> <environment name="live" url="http://www.live.com"> <server name="a" IP="192.168.1.10"></server> <server name="b" IP="192.168.1.20"></server> <server name="c" IP="192.168.1.30"></server> </environment> <environment name="dev" url="http://www.dev.com"> <server name="a" IP="192.168.1.10"></server>