code: def __convert_node(node, default_value='', default_flags=vsflags()):
      
      name = __get_attribute(node, 'Name')
      logging.debug('Found %s named %s', node.tagName, name)
  
      converted = {}
      converted['name'] = name
      converted['switch'] = __get_attribute(node, 'Switch')
      converted['comment'] = __get_attribute(node, 'DisplayName')
      converted['value'] = default_value
  
      # Check for the Flags attribute in case it was created during preprocessing
      flags = __get_attribute(node, 'Flags')
  
      if flags:
          flags = flags.split(',')
      else:
          flags = default_flags
  
      converted['flags'] = flags
  
      return converted
docs: Converts a XML node to a JSON equivalent.