xml文档读取具有0x19十六进制字符

时间:2013-07-05 10:01:04

标签: c# hex xmldocument

使用十六进制0x19字符C#

读取xml文档

显然上面的字符在C#中无效,我要加载的XML文档包含它。

因此,每当我尝试阅读它时,它都会抛出XML异常。

<description><![CDATA[Whenever I run<br>Whenever I run to you lost one<br>Its never done<br>Just hanging on<br><br>Just past has let me be<br>Returning as if dream<br>Shattered as belief<br><br>If you have to go dont say goodbye<br>If you have to go dont you cry<br>If you have to go I will get by<br>Someday Ill follow you and see you on the other side<br><br>But for the grace of love<br>Id will the meaning of<br>Heaven from above<br><br>Your picture out of time<br>Left aching in my mind<br>Shadows kept alive<br><br>If you have to go dont say goodbye<br>If you have to go dont you cry<br>If you have to go I will get by<br>I will follow you and see you on the other side<br><br>But for the grace of love<br>Id will the meaning of<br>Heaven from above<br><br>Long horses we are born<br>Creatures more than torn<br>Mourning our way home]]></description>

显然上面一行包含该字符

0 个答案:

没有答案