title: getting the minOccurs attribute using XSOM from an element
body: <p>How do I get the minOccurs attribute off of an element using the XSOM parser? I've seen this example for getting the attributes related to a complex type:</p>
  
  <pre><code>private void getAttributes(XSComplexType xsComplexType){
      Collection&lt;? extends XSAttributeUse&gt; c = xsComplexType.getAttributeUses();
      Iterator&lt;? extends XSAttributeUse&gt; i = c.iterator();while(i.hasNext()){
          XSAttributeDecl attributeDecl = i.next().getDecl();
          System.out.println("type: "+attributeDecl.getType());
          System.out.println("name:"+attributeDecl.getName());
      }
  }
  </code></pre>
  
  <p>But, can't seem to figure out the right way for getting it off an an element such as:</p>
  
  <pre><code>&lt;xs:element name="StartDate" type="CommonDateType" minOccurs="0"/&gt;
  </code></pre>
  
  <p>Thanks!</p>