title: Embedd a xsd file in C#
body: <p>Right now we have static code to a XML schema file. But now we want to embedd that file</p>
  
  <p>Code right now:</p>
  
  <pre><code>XmlTextReader reader = new XmlTextReader("schema.xsd");
  XmlSchema schema = XMLSchema.Read(xReader, new ValidationEventHandler(ValidationEventHandler));
  </code></pre>
  
  <p>But now I want to have it embedded in a Resouce file. So how do I do.</p>
  
  <pre><code>XmlTextReader reader = new XmlTextReader(Resouces.Schema);
  XmlSchema schema = XMLSchema.Read(xReader, new ValidationEventHandler(ValidationEventHandler));
  </code></pre>
  
  <p>This is not the way. </p>