What are invalid characters in XML

后端 未结 15 1706
时光说笑
时光说笑 2020-11-22 03:23

I am working with some XML that holds strings like:

This is a string

Some of the strings that I am passing to the

15条回答
  •  忘掉有多难
    2020-11-22 04:09

    Anyone tried this System.Security.SecurityElement.Escape(yourstring)? This will replace invalid XML characters in a string with their valid equivalent.

提交回复
热议问题