public static Stream GetSchemaStream() { Stream stream = typeof(BlogMLResource).Assembly.GetManifestResourceStream("BlogML.BlogML.xsd"); if (stream == null) throw new InvalidOperationException("Schema not found"); return stream; }