def _tostring(value):
if value is True:<EOL><INDENT>return '<STR_LIT:true>'<EOL><DEDENT>elif value is False:<EOL><INDENT>return '<STR_LIT:false>'<EOL><DEDENT>elif value is None:<EOL><INDENT>return None<EOL><DEDENT>else:<EOL><INDENT>return str(value)<EOL><DEDENT>
_tostring

    Convert value to XML compatible string.