Ckuhar

Hi,

I'm trying to get XmlReader parse random RSS feeds, and ran accross the document header:

<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd"><channel>...</channel></rss>

and XmlReader.Read throws the exception "NotSupportedException".

Replacing the header with a proper XML header < xml version="1.0" ...> fixes the problem.

Question: Is there a property in the compact frameworks XmlReader properties to get around this

I suppose the brute force method would be to replace the header with a proper xml one, but I'm lazy and am looking for a one line fix.

Thanks,

Chris



Re: .NET Compact Framework XmlReader NotSupportedException on <!DOCTYPE rss ...>

Ilya Tumanov

DTDs are not supported on NETCF and there's no property to get around this. So go for the fix you've identified.