I am using C#’s xmlTextReader to parse an RSS xml file. It works fine except when there is a missing header tag. How do I get around this issue without injecting the header myself?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I got around this by implementing Peter Bromberg’s custom RSS reader. It is more work compared to using Microsoft’s inbuilt reader, however, you can tweak Bromberg’s reader to handle errors in the RSS feed with ease.