title: how to find restriction values in a simple xsd element with c#
body: <p>How can I retrieve these enumeration types on an xsd simpleType with c#? Here is a sample simple type?</p>
  
  <pre><code>&lt;xs:simpleType name="PaymentType"&gt;
      &lt;xs:restriction base="xs:string"&gt;
        &lt;xs:enumeration value="Cash" /&gt;
        &lt;xs:enumeration value="CreditCard" /&gt;
    &lt;/xs:restriction&gt;
  &lt;/xs:simpleType&gt;
  </code></pre>
  
  <p>thank you</p>