开发者

Dealing with XML errors in RSS feeds using SyndicationFeed.Load

开发者 https://www.devze.com 2022-12-25 03:14 出处:网络
When reading in a 3rd party RSS feed an XMLException is thrown due to an invalid DateTime in the feed XML.

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

精彩评论

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