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?