def _WriteSimpleXMLElement(outfile, name, value, indent):
 value_str = _StrOrUnicode(value)
 if isinstance(value, bool):
  value_str = value_str.lower()
 safe_value_str = _MakeXMLSafe(value_str)
 outfile.write(('%s<%s>%s</%s>\n' % (indent, name, safe_value_str, name)))

def _WriteSimpleXMLElement ( outfile , name , value , indent ) : value_str = _StrOrUnicode ( value ) if isinstance ( value , bool ) : value_str = value_str . lower ( ) safe_value_str = _MakeXMLSafe ( value_str ) outfile . write ( ( '%s<%s>%s</%s>\n' % ( indent , name , safe_value_str , name ) ) )
writes a simple xml element .