code: public XSDocument constraint(Constraint constraint, String constraintValue) throws SAXException{
          if(constraint!=Constraint.NONE)
              xml.addAttribute(constraint.name().toLowerCase(), constraintValue);
          return this;
      }
docs: $constraint="$defaultValue"