parsing XML with ampersand

后端 未结 9 1397
孤城傲影
孤城傲影 2020-11-30 12:21

I have a string which contains XML, I just want to parse it into Xelement, but it has an ampersand. I still have a problem parseing it with HtmlDecode. Any suggestions?

9条回答
  •  青春惊慌失措
    2020-11-30 13:11

    The ampersant makes the XML invalid. This cannot be fixed by a stylesheet so you need to write code with some other tool or code in VB/C#/PHP/Delphi/Lisp/Etc. to remove it or to translate it to &.

提交回复
热议问题