Hello - I’m trying to create a simple RSS feed to be read using XmlReader on my Cobra. The XmlReader seems to work OK on most RSS sites that I’ve come across. However, with my simple RSS feed example (copied below), when attempeting the very first xml.Read(), I recieve: “A first chance exception of type ‘System.Xml.XmlException’”. I’m not sure what is wrong with my simple feed example that causes this XmlReader error as it passes the WC3 RSS Validator.
I greatly appriciate any assistance.
<?xml version="1.0" encoding="utf-8"?>
Item Title 1
Item Description 1
Item Title 2
Item Description 2
Cypher - Thanks, yes my simple RSS feed example works with your code on my Cobra. Your code, at first glance, does not seem significantly different from mine, but I will compare the code more closely late tonight or tomorrow as I have commitments for the rest of today. I wonder if there could be some sort of conflict with other code in my project? Thanks again for your help!
OK, after a little research, I found my RSS problem. I had written a string method that was supposed to do some useful manipulations to the RSS response string. However, this method was on occasion corrupting the RSS data. Since this was in intermittent problem, it was difficult for me to figure out.
Cypher and Gus, thank you very much for your help.