1

As you can see in this question Problems Reading RSS with C# and .net 3.5 There is a problem when trying to read some Rss Feeds that express their date differently.

I have tried the workaround posted there but I am not that experienced and I am trying it on Windows Phone 7. My main difficulty is that XmlTextReader seems to be inaccessible. So I was wondering if anyone could help me use XmlReader instead or if anyone knows a new workaround for this problem.

Thanks.

Community
  • 1
  • 1
Izzy
  • 11
  • 1

1 Answers1

0

Have you tried to use System.Xml.Linq? I even saw a example application (RSS Reader ;p) for windows phone 7.

http://dotnet.dzone.com/articles/building-rss-reader-windows-0 ?

nilphilus
  • 590
  • 1
  • 5
  • 23
  • Thanks for the link. I'll check it out. – Izzy Sep 12 '10 at 17:37
  • Thanks for the link but that app suffers from the same error mine does. An error was encountered when parsing a DateTime value in the XML. I posted a link to a possible workaround but I can't quite get it to work for me. You wouldn't happen to know how to apply it to that app you posted would you? – Izzy Sep 12 '10 at 17:42
  • @Izzy Try sth like this: var notes = from note in rss select new { title = note.Attribute("title").Value, date = new DateTime(note.Attribute("date")) }; – nilphilus Sep 12 '10 at 18:46
  • I'm not really sure about DateTime constructor and names of attributes but there should be some sort of clue ;-) [use System.Xml.Linq] – nilphilus Sep 12 '10 at 18:47