An error occurred while parsing EntityName. Line1, position 844

前端 未结 5 1507
星月不相逢
星月不相逢 2020-12-25 10:22

I have got the following exception from the below code block.

An error occurred while parsing EntityName. Line1, position 844.

I was trying

5条回答
  •  滥情空心
    2020-12-25 10:56

    If your XML is being constructed with string concatenation then you'll be wanting to escape it. & should become & while < and > should become < and > respectively.

    There may be others too. Of course you should really use a proper XML encoder rather than trying to do it yourself for many reasons.

提交回复
热议问题