code: public void occurs(int minOccurs, int maxOccurs) throws SAXException{
          if(minOccurs!= 1)
              xml.addAttribute("minOccurs", String.valueOf(minOccurs));
          if(maxOccurs!=1)
              xml.addAttribute("maxOccurs", maxOccurs==-1 ? "unbounded" : String.valueOf(maxOccurs));
      }
docs: if minOccurs!=1
  minOccurs="$minOccurs"
  
  if maxOccurs!=1
  maxOccurs="$maxOccurs"