code: def save(self, data, xparent=None):
          
          if xparent is not None:
              elem = ElementTree.SubElement(xparent, 'bool')
          else:
              elem = ElementTree.Element('bool')
  
          elem.text = nstr(data)
          return elem
docs: Parses the element from XML to Python.
          
          :param      data    | <variant>
                      xparent | <xml.etree.ElementTree.Element> || None
          
          :return     <xml.etree.ElementTree.Element>