开发者

Dealing with XML errors in RSS feeds using SyndicationFeed.Load

When reading in a 3rd party RSS feed an XMLException is thrown due to an invalid DateTime in the feed XML.

开发者_运维问答

How can I handle this more robustly. For example, is there a way to catch the exception, identify the problematic element and deal with it (e.g. insert a placeholder) and continue the load?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜