我想要的是这样的:
<a>
<b>
<c>
value
</c>
</b>
</a>
我试过:WriteValue()/WriteString() 不会开始新行:"<c>value</c>"
WriteWhitespace(Environment.NewLine) 不会保留缩进:
<a>
<b>
<c>
value
</c>
</b>
</a>
出于某种原因,我必须使用 XmlTextWriter。