I seem to have come across this several times in the past week or two, so it's worth making a note. In .NET 2.0 XmlValidatingReader is obsolete. You need to do something like the following in order to create a validating reader now: XmlReaderSettings