Dealing with XML errors in RSS feeds using SyndicationFeed.Load

870 views Asked by At

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

There are 0 answers