def _fromstring(value):
if not value:<EOL><INDENT>return [None]<EOL><DEDENT>std_value = value.strip().lower()<EOL>if std_value == '<STR_LIT:true>':<EOL><INDENT>return True<EOL><DEDENT>elif std_value == '<STR_LIT:false>':<EOL><INDENT>return False<EOL><DEDENT>try:<EOL><INDENT>return int(std_value)<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>return float(std_value)<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT>return value<EOL>
_fromstring

    Convert XML string value to None, boolean, int or float.