Prevent XmlSerializer from formatting output

前端 未结 3 1836
长情又很酷
长情又很酷 2020-12-20 11:26

When using the default settings with the XmlSerializer it will output the XML as a formated value.

IE: something along these lines.



        
3条回答
  •  感情败类
    2020-12-20 11:45

    It is simple to parse the resulting XML and remove and newlines and tabs...
    using 'Indent = false', will still put elements on newlines no?

提交回复
热议问题