私は .NET Fx 3.5 を使用しており、ConfigurationSection/ConfigurationElement から継承する独自の構成クラスを作成しました。現在、構成ファイルで次のようになります。
<blah.mail>
<templates>
<add name="TemplateNbr1" subject="..." body="Hi!\r\nThis is a test.\r\n.">
<from address="blah@hotmail.com" />
</add>
</templates>
</blah.mail>
template
body を子ノード(上記の例のノード)として表現して、add
最終的に次のようにしたいと考えています。
<blah.mail>
<templates>
<add name="TemplateNbr1" subject="...">
<from address="blah@hotmail.com" />
<body><![CDATA[Hi!
This is a test.
]]></body>
</add>
</templates>
</blah.mail>