title: Query XSD for value?
body: <p>I was provided an XSD file to fill in a value in XML i am generating for submitting to a web service.  </p>
  
  <p>The XSD defines values for Enumerations that contain annotations and other info.  Best way to describe is to show some of the XSD.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-16" ?&gt; 
    &lt;xs:schema xmlns="http://MyCompany/Schemas" xmlns:b="http://schemas.microsoft.com/BizTalk   /2003" elementFormDefault="qualified" targetNamespace="http://MyCompany/Schemas" id="NAICSTypes" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;xs:simpleType name="NAICSType"&gt;
      &lt;xs:restriction base="xs:int"&gt;
        &lt;xs:enumeration value="111110"&gt;
          &lt;xs:annotation&gt;
            &lt;xs:appinfo&gt;2007 NAICS Title&lt;/xs:appinfo&gt; 
            &lt;xs:documentation xml:lang="en-us"&gt;Soybean Farming&lt;/xs:documentation&gt; 
          &lt;/xs:annotation&gt;
       &lt;/xs:enumeration&gt;
       &lt;xs:enumeration value="111120"&gt;
         &lt;xs:annotation&gt;
            &lt;xs:appinfo&gt;2007 NAICS Title&lt;/xs:appinfo&gt; 
            &lt;xs:documentation xml:lang="en-us"&gt;Oilseed (except Soybean) Farming&lt;/xs:documentation&gt; 
         &lt;/xs:annotation&gt;
       &lt;/xs:enumeration&gt;
       &lt;xs:enumeration value="111130"&gt;
         &lt;xs:annotation&gt;
            &lt;xs:appinfo&gt;2007 NAICS Title&lt;/xs:appinfo&gt; 
            &lt;xs:documentation xml:lang="en-us"&gt;Dry Pea and Bean Farming&lt;/xs:documentation&gt; 
         &lt;/xs:annotation&gt;
       &lt;/xs:enumeration&gt;
       &lt;xs:enumeration value="111140"&gt;
         &lt;xs:annotation&gt;
           &lt;xs:appinfo&gt;2007 NAICS Title&lt;/xs:appinfo&gt; 
           &lt;xs:documentation xml:lang="en-us"&gt;Wheat Farming&lt;/xs:documentation&gt; 
        &lt;/xs:annotation&gt;
       &lt;/xs:enumeration&gt;
       &lt;xs:enumeration value="111150"&gt;
        &lt;xs:annotation&gt;
           &lt;xs:appinfo&gt;2007 NAICS Title&lt;/xs:appinfo&gt; 
           &lt;xs:documentation xml:lang="en-us"&gt;Corn Farming&lt;/xs:documentation&gt; 
        &lt;/xs:annotation&gt;
       &lt;/xs:enumeration&gt;
  </code></pre>
  
  <p>Essentially, what i need to do is provide a value, like 111150, and get back "Corn Farming" as a result in c#</p>
  
  <p>Any Suggestions?</p>