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:
private void getAttributes(XSComplexType xsComplexType){
Collection<? extends XSAttributeUse> c = xsComplexType.getAttributeUses();
Iterator<? extends XSAttributeUse> i = c.iterator();while(i.hasNext()){
XSAttributeDecl attributeDecl = i.next().getDecl();
System.out.println("type: "+attributeDecl.getType());
System.out.println("name:"+attributeDecl.getName());
}
}
But, can't seem to figure out the right way for getting it off an an element such as:
<xs:element name="StartDate" type="CommonDateType" minOccurs="0"/>
Thanks!