docs: def convert_bool(key, val, attr_type, attr={}, cdata=False):
      """Converts a boolean into an XML element"""
      LOG.info('Inside convert_bool(): key="%s", val="%s", type(val) is: "%s"' % (
          unicode_me(key), unicode_me(val), type(val).__name__)
      )
  
      key, attr = make_valid_xml_name(key, attr)
  
      if attr_type:
          attr['type'] = get_xml_type(val)
      attrstring = make_attrstring(attr)
      return '<%s%s>%s</%s>' % (key, attrstring, unicode(val).lower(), key)