views:

155

answers:

1

I have got my resource file with the help of

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

Now i have to use fileStream to compare my xhtml file against the DTDs that are embedded inside the resource file. How to do that?

+1  A: 

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

annakata
There's also straight-forward documentation at http://msdn.microsoft.com/en-us/library/z2adhb2f.aspx .
Matthew Flaschen
Straight forward for MSDN :)
annakata
In this case, the documentation /is/ actually straight-forward. Not guaranteed for MSDN, I know. :)
Matthew Flaschen