【发布时间】:2010-11-09 05:50:15
【问题描述】:
我正在使用一个 RSS 提要,并且该文档包含一个特殊字符 »
我猜测提要的编码不正确,但我无法更改。我想覆盖它或者只是用友好的东西替换有问题的字符。
using (Stream stream = response.GetResponseStream())
{
using (XmlReader reader = XmlReader.Create(stream))
{
try
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(reader); //<--- FAILS HERE
//parse the items of the feed
...
【问题讨论】: