title: How to Create an XmlSchema instance from a String or an .xsd stored as a resource
body: <p>I have an .xsd file stored as a resource in my vb.net project.   I need to create an instance of the XmlSchema class using this resource.   Any examples of creating an XmlSchema I can locate do one of the following:
  Create the xmlschema by adding elements and attributes manually like <a href="http://www.aspfree.com/c/a/XML/Generating-XML-Schema-Dynamically-Using-VBNET-2005-Essentials/" rel="nofollow noreferrer">this example</a>.
  Create the xmlschema using an XmlTextReader which requires a path to a physical file like <a href="http://msdn.microsoft.com/en-us/library/04x694fe(VS.71).aspx" rel="nofollow noreferrer">this example</a>.</p>
  
  <p>Neither of these examples apply to my situation.  I need to create an XmlSchema using either the .xsd stored as a resource or similarly the string that is easily extracted from the resource file.</p>
  
  <p>Any assistance is appreciated.</p>