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?
精彩评论