|
Recently, Google changed something in their blog feeds and now I'm getting the error mentioned in the title of this thread.
My customer wants to load RSS feeds from Google's blogsearch tool.
Here is an example of one of the RSS feeds that I'm loading into an RSSToolkit RSSDocument...
http://blogsearch.google.com/blogsearch_feeds?q=Frost%20Automotive%20%26%20Transportation&hl=en&biw=1276&bih=834&output=rss
This RSS feed loads fine in IE and other RSS clients, and validates, but RSSToolkit chokes on it.
Question:
Is there any way to get RSSTookit to ignore such errors? (even if there is an invalid character, I'd still like to ignore that one character and get the rest of the data, if possible)
All my customer knows is that the feed works fine everywhere but my application, which is using RSSToolkit. I'd hate to have to spend the time to build my own RSSToolkit, so any help would be much appreciated.
Here's the code that throws the exception:
var rss = RssToolkit.Rss.RssDocument.Load(new System.Uri(url));
(Where url contains the URL string above)
Here's the Stack:
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res)
at System.Xml.XmlTextReaderImpl.InvalidCharRecovery(Int32& bytesCount, Int32& charsCount)
at System.Xml.XmlTextReaderImpl.GetChars(Int32 maxCharsCount)
at System.Xml.XmlTextReaderImpl.ReadData()
at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
at System.Xml.XmlTextReaderImpl.ParseText()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at RssToolkit.Rss.DownloadManager.DownLoadFeedDom(String url)
at RssToolkit.Rss.DownloadManager.GetFeedDom(String url)
at RssToolkit.Rss.DownloadManager.GetFeed(String url)
at RssToolkit.Rss.RssDocumentBase.Load[T](Uri url)
at RssToolkit.Rss.RssDocument.Load(Uri url)
at RSSToolkitTester.Form1.button1_Click(Object sender, EventArgs e) in C:\10 Development\10 VS Projects\VS9 VB\30 Windows Console Applications\FeedHarvester\RSSToolkitTester\Form1.cs:line 24
|