code: public void setEnabled(String name, Locale locale, boolean isEnabled) {
  
          CmsXmlHtmlValue value = (CmsXmlHtmlValue)getValue(name, locale);
          Element element = value.getElement();
          Attribute enabled = element.attribute(ATTRIBUTE_ENABLED);
  
          if (enabled == null) {
              if (!isEnabled) {
                  element.addAttribute(ATTRIBUTE_ENABLED, Boolean.toString(isEnabled));
              }
          } else if (isEnabled) {
              element.remove(enabled);
          } else {
              enabled.setValue(Boolean.toString(isEnabled));
          }
      }
docs: Sets the enabled flag of an already existing element.<p>
  
  Note: if isEnabled is set to true, the attribute is removed
  since true is the default
  
  @param name name name of the element
  @param locale locale of the element
  @param isEnabled enabled flag for the element