docs: def _fromstring(value):
          '''Convert XML string value to None, boolean, int or float'''
          # NOTE: Is this even possible ?
          if value is None:
              return None
  
          # FIXME: In XML, booleans are either 0/false or 1/true (lower-case !)
          if value.lower() == 'true':
              return True
          elif value.lower() == 'false':
              return False
  
          # FIXME: Using int() or float() is eating whitespaces unintendedly here
          try:
              return int(value)
          except ValueError:
              pass
  
          try:
              # Test for infinity and NaN values
              if float('-inf') < float(value) < float('inf'):
                  return float(value)
          except ValueError:
              pass
  
          return value