1 つの長い文字列ではなく、フォーマットされた XML を DataContractSerializer に吐き出させる簡単な方法はありますか? タグやコンテンツを変更したくないのですが、XML を読みやすくするために改行とインデントを追加するだけですか?
<tagA>
<tagB>This is</tagB>
<tagC>Much</tagC>
<tagD>
<tagE>easier to read</tagE>
</tagD>
</tagA>
<tagA><tagB>This is</tagB><tagC>Much</tagC><tagD><tagE>harder to read</tagE></tagD></tagA>