XML Deserialization of string elements with newlines in C#

后端 未结 3 464
迷失自我
迷失自我 2021-02-06 08:42

I can\'t seem to figure out why this test doesn\'t pass

The test is:

given the following XML:


           


        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-06 09:14

    Try using XmlTextReader for deserialization with the WhiteSpaceHandling property set to WhiteSpaceHandling.None and Normalization = true

提交回复
热议问题