XSLT - remove whitespace from template

前端 未结 8 1874
北恋
北恋 2020-12-02 13:23

I am using XML to store a small contact list and trying to write a XSL template that will transform it into a CSV file. The problem I am having is with whitespace in the out

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-02 13:31

    Modify the code which we used to format raw xml file by removing below lines will remove extra blank white spaces added in exported excel.

    While formatting with indented property system is adding those extra blank white spaces.

    Comment lines related to formatting xml like below line and try.

    xmlWriter.Formatting = System.Xml.Formatting.Indented;
    

提交回复
热议问题