0

我正在运行一个使用三叶草 ETL 将 CSV 文件转换为 XML 输出的图表(它使用 XML 编写器)。但是,当我打开 XML 输出文件(仅在记事本中)时,它全部写在一行上,因此文件难以阅读。有没有可以用来告诉 XML 编写器我希望我的输出文件看起来如何的设置?

4

1 回答 1

3

I’m not sure what version you use, but in latest versions XMLWriter has attribute "Omit new lines" (omitNewLine), which is most likely enabled in your graph. Although the attribute should be turned off by default, you may explicitly set it to false (omitNewLines="false") in order to make sure each element will be written on a separate line.

Hope it helps.

于 2015-03-20T10:43:57.970 回答