title: parsing XSD with ruby
body: <p>Hi i have a XSD that i want to parse. Note that i don't want validate it against a XML but get all enumerations that i have there. For example</p>
  
  <pre><code>&lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
   &lt;xsd:simpleType name="fruitNames"&gt;
    &lt;xsd:restriction base="xsd:string"&gt;
    &lt;xsd:enumeration value="banana" /&gt;
    &lt;xsd:enumeration value="apple" /&gt;
    &lt;xsd:enumeration value="orange" /&gt;
    &lt;xsd:enumeration value="mango" /&gt;
   &lt;/xsd:restriction&gt;
  &lt;/xsd:simpleType&gt;
  &lt;/xsd:schema&gt;
  </code></pre>
  
  <p>I want to extract the enumeration values.. any idea? I tried to play with XSD::Schema but without success..</p>