How can I check the xhtml file for the specified DTD?

I have a resource file using

string filePath = Assembly.GetExecutingAssembly().GetName().Name+"." + resourceFileName;    
Stream fileStream = Assembly.GetExecutingAssembly().GetManifestResourceStream(filePath);

      

Now I need to use fileStream to compare my xhtml file with DTDs embedded in the resource file. How to do it?

+1


a source to share


1 answer


Well, the answer I thought I knew ( XmlValidatingReader ) is now deprecated or outdated depending on your platform, but the replacement seems simple, Examples here and here .



+1


a source







All Articles