My custom config section looks like this:
<MySection>
<add name="a" value="111"/>
<add name="b" value="222"/>
<add name="c" value="333"/>
...
</MySection>
I know how to write a custom config section, but how to iterate through all its entries?
Problem solved with : http://msdn.microsoft.com/en-us/library/system.configuration.configurationelement(v=vs.100).aspx
If you want to parse your section use:
If you want to iterate through the XML elements manually (which would be a really strange requirement), you could use LINQ to XML
If you need dynamic items, then perhaps you could use the ConfigurationElementCollection and then parse your section and work with your collection objects instead of working with the XML directly